This represents an error that was encountered during parsing.
Methods
- D
-
- I
-
- N
-
Attributes
|
[R]
|
location |
A Location object representing the location of this error in the source. |
|
[R]
|
message |
The message associated with this error. |
Class Public methods
new(message, location)
Link
Create a new error object with the given message and location.
Source:
show
| on GitHub
def initialize(message, location)
@message = message
@location = location
end
Instance Public methods
deconstruct_keys(keys)
Link
Implement the hash pattern matching interface for ParseError.
Source:
show
| on GitHub
def deconstruct_keys(keys)
{ message: message, location: location }
end
inspect()
Link
Returns a string representation of this error.
Source:
show
| on GitHub
def inspect
"#<Prism::ParseError @message=#{@message.inspect} @location=#{@location.inspect}>"
end