Class: Bool::Node
- Inherits:
-
Object
- Object
- Bool::Node
- Defined in:
- lib/bool/ast.rb,
ext/bool_ext/ext.c
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(token) ⇒ Node
Returns a new instance of Node.
16 17 18 |
# File 'lib/bool/ast.rb', line 16 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
14 15 16 |
# File 'lib/bool/ast.rb', line 14 def token @token end |