diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-16 23:28:45 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-16 23:28:45 +0100 |
commit | c54ccd3d6eb19d37b91d010b124f6f98c617ec0b (patch) | |
tree | 4ecd3b3249ac56699ca5958cd1eaf3fc0f6941c2 /lib | |
parent | 52d64ca88442beab556cbb696f042bcbb7ccd54f (diff) | |
download | zorglub-c54ccd3d6eb19d37b91d010b124f6f98c617ec0b.zip zorglub-c54ccd3d6eb19d37b91d010b124f6f98c617ec0b.tar.gz |
Node: ext seems ok like this
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 |