Class: Factbook::Subsect

Inherits:
Object
  • Object
show all
Includes:
LogUtils::Logging
Defined in:
lib/factbook/subsect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSubsect

Returns a new instance of Subsect.



12
13
14
# File 'lib/factbook/subsect.rb', line 12

def initialize
  @data = {}
end

Instance Attribute Details

#dataObject

hash holding data e.g. { ‘text’ => ‘…’ etc. }



10
11
12
# File 'lib/factbook/subsect.rb', line 10

def data
  @data
end

#titleObject

use name instead of title - why? why not?



9
10
11
# File 'lib/factbook/subsect.rb', line 9

def title
  @title
end