Exception: Gobstones::Parser::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gobstones/parser/parse_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parser, code) ⇒ ParseError

Returns a new instance of ParseError.



6
7
8
9
# File 'lib/gobstones/parser/parse_error.rb', line 6

def initialize(parser, code)
  @parser = parser
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/gobstones/parser/parse_error.rb', line 4

def code
  @code
end

#parserObject (readonly)

Returns the value of attribute parser.



4
5
6
# File 'lib/gobstones/parser/parse_error.rb', line 4

def parser
  @parser
end