Class: GramNode
- Inherits:
-
Object
- Object
- GramNode
- Defined in:
- lib/statsailr/parser/sts_gram_node.rb
Instance Attribute Summary collapse
-
#e1 ⇒ Object
readonly
Returns the value of attribute e1.
-
#e2 ⇒ Object
readonly
Returns the value of attribute e2.
-
#e3 ⇒ Object
readonly
Returns the value of attribute e3.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, e1, e2 = nil, e3 = nil) ⇒ GramNode
constructor
A new instance of GramNode.
Constructor Details
#initialize(type, e1, e2 = nil, e3 = nil) ⇒ GramNode
Returns a new instance of GramNode.
3 4 5 6 7 8 |
# File 'lib/statsailr/parser/sts_gram_node.rb', line 3 def initialize(type, e1, e2 = nil, e3=nil) @type = type @e1 = e1 @e2 = e2 @e3 = e3 end |
Instance Attribute Details
#e1 ⇒ Object (readonly)
Returns the value of attribute e1.
2 3 4 |
# File 'lib/statsailr/parser/sts_gram_node.rb', line 2 def e1 @e1 end |
#e2 ⇒ Object (readonly)
Returns the value of attribute e2.
2 3 4 |
# File 'lib/statsailr/parser/sts_gram_node.rb', line 2 def e2 @e2 end |
#e3 ⇒ Object (readonly)
Returns the value of attribute e3.
2 3 4 |
# File 'lib/statsailr/parser/sts_gram_node.rb', line 2 def e3 @e3 end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/statsailr/parser/sts_gram_node.rb', line 2 def type @type end |