Module: EndView::InstanceMethods

Defined in:
lib/end_view.rb

Instance Method Summary collapse

Instance Method Details

#layoutObject



58
59
60
61
# File 'lib/end_view.rb', line 58

def layout
  layout = self.class.layout
  layout.respond_to?(:call) ? instance_exec(&layout) : layout
end

#templateObject



63
64
65
# File 'lib/end_view.rb', line 63

def template
  self.class.template
end