Class: Modular::Components::MainContent

Inherits:
Base
  • Object
show all
Defined in:
lib/modular/components/main_content.rb

Instance Attribute Summary

Attributes inherited from Base

#title, #uniqid, #width

Instance Method Summary collapse

Methods inherited from Base

#all_errors, attr_accessor, attr_reader, attr_writer, #find_by_uniqid, #initialize, #persisted?, #to_hash, #to_json, #type, type, use_mustached_template!

Methods included from Rendering

#action_name, #execute

Constructor Details

This class inherits a constructor from Modular::Components::Base

Instance Method Details

#render(args = {}) ⇒ Object



2
3
4
# File 'lib/modular/components/main_content.rb', line 2

def render(args = {})
  '<%=yield%>'.html_safe
end