Class: Sie::Parser::Entry
- Inherits:
-
Object
- Object
- Sie::Parser::Entry
- Defined in:
- lib/sie/parser/entry.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(label) ⇒ Entry
Returns a new instance of Entry.
8 9 10 11 12 |
# File 'lib/sie/parser/entry.rb', line 8 def initialize(label) @label = label @attributes = {} @entries = [] end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/sie/parser/entry.rb', line 5 def attributes @attributes end |
#entries ⇒ Object
Returns the value of attribute entries.
6 7 8 |
# File 'lib/sie/parser/entry.rb', line 6 def entries @entries end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'lib/sie/parser/entry.rb', line 4 def label @label end |