Method: Deas::ViewHandler::ClassMethods#layout

Defined in:
lib/deas/view_handler.rb

#layout(path = nil, &block) ⇒ Object



90
91
92
93
# File 'lib/deas/view_handler.rb', line 90

def layout(path = nil, &block)
  value = !path.nil? ? Proc.new{ path } : block
  self.layouts.push(value) if value
end