Class: Factbook::Subsect
- Inherits:
-
Object
- Object
- Factbook::Subsect
- Includes:
- LogUtils::Logging
- Defined in:
- lib/factbook/subsect.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
hash holding data e.g.
-
#title ⇒ Object
use name instead of title - why? why not?.
Instance Method Summary collapse
-
#initialize ⇒ Subsect
constructor
A new instance of Subsect.
Constructor Details
#initialize ⇒ Subsect
Returns a new instance of Subsect.
12 13 14 |
# File 'lib/factbook/subsect.rb', line 12 def initialize @data = {} end |
Instance Attribute Details
#data ⇒ Object
hash holding data e.g. { ‘text’ => ‘…’ etc. }
10 11 12 |
# File 'lib/factbook/subsect.rb', line 10 def data @data end |
#title ⇒ Object
use name instead of title - why? why not?
9 10 11 |
# File 'lib/factbook/subsect.rb', line 9 def title @title end |