diff options
-rw-r--r-- | lib/zorglub/config.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/zorglub/config.rb b/lib/zorglub/config.rb index 2b86c0f..acf828e 100644 --- a/lib/zorglub/config.rb +++ b/lib/zorglub/config.rb @@ -39,13 +39,15 @@ module Zorglub end # def register_engine name, ext, proc - return unless name and ext + return unless name @engines[name]=[ ext, proc ] end # def engine_ext engine e = @engines[engine] - ( e.nil? ? '' : '.'+e[0] ) + return '' if e.nil? + x=e[0] + ( x.nil? ? '' : '.'+x ) end # def engine_proc engine |