Module: EndView::InstanceMethods

Defined in:
lib/end_view.rb

Instance Method Summary collapse

Instance Method Details

#retrieve_layoutObject



76
77
78
79
# File 'lib/end_view.rb', line 76

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

#templateObject



81
82
83
# File 'lib/end_view.rb', line 81

def template
  self.class.template
end