Class: YARP::ParseError
- Inherits:
-
Object
- Object
- YARP::ParseError
- Defined in:
- lib/yarp.rb,
ext/yarp/extension.c
Overview
This represents an error that was encountered during parsing.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #deconstruct_keys(keys) ⇒ Object
-
#initialize(message, location) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, location) ⇒ ParseError
Returns a new instance of ParseError.
120 121 122 123 |
# File 'lib/yarp.rb', line 120 def initialize(, location) @message = @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
118 119 120 |
# File 'lib/yarp.rb', line 118 def location @location end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
118 119 120 |
# File 'lib/yarp.rb', line 118 def @message end |
Instance Method Details
#deconstruct_keys(keys) ⇒ Object
125 126 127 |
# File 'lib/yarp.rb', line 125 def deconstruct_keys(keys) { message: , location: location } end |