Class: Hybook::Section
- Inherits:
-
Object
- Object
- Hybook::Section
- Defined in:
- lib/hybook/type/section.rb
Instance Attribute Summary collapse
-
#pictures ⇒ Object
Returns the value of attribute pictures.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(title) ⇒ Section
Returns a new instance of Section.
10 11 12 13 |
# File 'lib/hybook/type/section.rb', line 10 def initialize( title ) @title = title @pictures = [] # pictures (images/logos/etec.) end |
Instance Attribute Details
#pictures ⇒ Object
Returns the value of attribute pictures.
8 9 10 |
# File 'lib/hybook/type/section.rb', line 8 def pictures @pictures end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/hybook/type/section.rb', line 7 def title @title end |