Class: Parser::Token
- Inherits:
-
Object
- Object
- Parser::Token
- Defined in:
- lib/special-giggle/parser.rb
Instance Attribute Summary collapse
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, *args) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(type, *args) ⇒ Token
Returns a new instance of Token.
7 8 9 |
# File 'lib/special-giggle/parser.rb', line 7 def initialize(type, *args) @type, @child = type, args end |
Instance Attribute Details
#child ⇒ Object (readonly)
Returns the value of attribute child.
5 6 7 |
# File 'lib/special-giggle/parser.rb', line 5 def child @child end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/special-giggle/parser.rb', line 5 def type @type end |