Class: Templette::Page::Section
- Inherits:
-
Object
- Object
- Templette::Page::Section
- Includes:
- DataAccessors
- Defined in:
- lib/templette/page.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(page, hash = {}) ⇒ Section
constructor
A new instance of Section.
Methods included from DataAccessors
#attributes, #generate_accessors, #include_helpers, #method_missing, #partial
Methods included from Helpers
#image_tag, #script_tag, #stylesheet_tag
Constructor Details
#initialize(page, hash = {}) ⇒ Section
Returns a new instance of Section.
88 89 90 91 |
# File 'lib/templette/page.rb', line 88 def initialize(page, hash={}) @page = page generate_accessors(hash) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Templette::DataAccessors
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
86 87 88 |
# File 'lib/templette/page.rb', line 86 def page @page end |