Class: Matestack::Ui::Core::Layout
- Defined in:
- lib/matestack/ui/core/layout.rb
Constant Summary
Constants included from TagHelper
TagHelper::TAGS, TagHelper::VOID_TAGS
Instance Attribute Summary
Attributes inherited from Base
#bind_to_parent, #escape, #html_tag, #options, #parent, #text
Attributes included from Slots
Class Method Summary collapse
-
.inherited(subclass) ⇒ Object
layout class method to specify if a rails layout should be used.
- .layout(layout = nil) ⇒ Object
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Layout
constructor
A new instance of Layout.
Methods inherited from Base
call, #children, #create_children, #extract_options, #method_missing, #params, #prepare, #render?, #render_content, #to_str, #view_context
Methods included from TagHelper
#a, #detached, #detached_to_s, #heading, #img, #plain, #rails_render, #unescape
Methods included from Slots
Methods included from Properties
#context, #create_context, #create_context_for_properties, included, #optional_property_keys, #required_property_keys, #set_text
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Matestack::Ui::Core::Base
Class Method Details
.inherited(subclass) ⇒ Object
layout class method to specify if a rails layout should be used
13 14 15 16 |
# File 'lib/matestack/ui/core/layout.rb', line 13 def self.inherited(subclass) subclass.layout(@layout) super end |
.layout(layout = nil) ⇒ Object
18 19 20 |
# File 'lib/matestack/ui/core/layout.rb', line 18 def self.layout(layout = nil) @layout = layout ? layout : @layout end |