Class: Sie::Parser::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/sie/parser/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



5
6
7
# File 'lib/sie/parser/entry.rb', line 5

def attributes
  @attributes
end

#entriesObject

Returns the value of attribute entries.



6
7
8
# File 'lib/sie/parser/entry.rb', line 6

def entries
  @entries
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/sie/parser/entry.rb', line 4

def label
  @label
end