diff options
-rw-r--r-- | lib/zorglub/node.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index af29a86..eee5c0e 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -13,13 +13,18 @@ module Zorglub # attr_reader :hooks # + def inherited sub + sub.layout layout + sub.engine engine + end + # def engine engine=nil @engine = engine unless engine.nil? @engine ||= Config.engine end # - def layout name=nil - @layout = name unless name.nil? + def layout layout=nil + @layout = layout unless layout.nil? @layout ||= Config.layout end # @@ -122,8 +127,8 @@ module Zorglub @action[:engine] end # - def layout name=nil - @action[:layout] = name unless name.nil? + def layout layout=nil + @action[:layout] = layout unless layout.nil? File.join(Config.layout_base_path, @action[:layout])+'.'+ Config.engine_ext(@action[:engine]) end # |