diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zorglub/node.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 57ef3a1..cf708ce 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -84,14 +84,8 @@ module Zorglub File.join(Config.static_base_path, @options[:view])+ext end # - # TODO rewrite - # def ext! ext - if ext.nil? or ext.empty? - @options[:ext]='' - else - @options[:ext] = (ext[0]=='.' ? (ext.length==1 ? nil : ext) : '.'+ext) - end + @options[:ext]= ( (ext.nil? or ext.empty?) ? nil : (ext[0]=='.' ? (ext.length==1 ? nil : ext) : '.'+ext) ) end # def ext |