Exception: Procedo::Formula::SyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/procedo/formula/syntax_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ SyntaxError

Returns a new instance of SyntaxError.


6
7
8
9
# File 'lib/procedo/formula/syntax_error.rb', line 6

def initialize(parser)
  @parser = parser
  super(@parser.failure_reason)
end

Instance Attribute Details

#parserObject (readonly)

Returns the value of attribute parser


4
5
6
# File 'lib/procedo/formula/syntax_error.rb', line 4

def parser
  @parser
end