Class: Bool::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/bool/ast.rb,
ext/bool_ext/ext.c

Direct Known Subclasses

And, Not, Or, Var

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tokenObject (readonly)

Returns the value of attribute token.



14
15
16
# File 'lib/bool/ast.rb', line 14

def token
  @token
end