Class: Modular::Components::MainContent

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

Instance Attribute Summary

Attributes inherited from Base

#title

Instance Method Summary collapse

Methods inherited from Base

abstract?, type, #type

Methods included from Rendering

#action_name, #controller_path, #execute, #flash, #initialize, #params, #protect_against_forgery?

Methods inherited from Helpers::AbstractModel

attr_accessor, attr_accessor_with_default, attr_reader, attr_reader_with_default, attr_writer, #initialize, #persisted?, #to_json

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