Class: Templette::Page::Section

Inherits:
Object
  • Object
show all
Includes:
DataAccessors
Defined in:
lib/templette/page.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pageObject (readonly)

Returns the value of attribute page.



86
87
88
# File 'lib/templette/page.rb', line 86

def page
  @page
end