Exception: Gobstones::Parser::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Gobstones::Parser::ParseError
- Defined in:
- lib/gobstones/parser/parse_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize(parser, code) ⇒ ParseError
constructor
A new instance of ParseError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/gobstones/parser/parse_error.rb', line 4 def code @code end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
4 5 6 |
# File 'lib/gobstones/parser/parse_error.rb', line 4 def parser @parser end |