From c54ccd3d6eb19d37b91d010b124f6f98c617ec0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 16 Jan 2012 23:28:45 +0100 Subject: Node: ext seems ok like this --- lib/zorglub/node.rb | 8 +------- 1 file changed, 1 insertion(+), 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 -- cgit v1.1-2-g2b99