Class: HyBook::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/hybook/type/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#picturesObject

Returns the value of attribute pictures.



8
9
10
# File 'lib/hybook/type/section.rb', line 8

def pictures
  @pictures
end

#titleObject

Returns the value of attribute title.



7
8
9
# File 'lib/hybook/type/section.rb', line 7

def title
  @title
end