Exception: Bool::SyntaxError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, token) ⇒ SyntaxError

Returns a new instance of SyntaxError.



12
13
14
15
# File 'lib/bool.rb', line 12

def initialize(message, token)
  super(message)
  @token = token
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



10
11
12
# File 'lib/bool.rb', line 10

def token
  @token
end