This represents a warning that was encountered during parsing.
Methods
- D
-
- I
-
- N
-
Attributes
|
[R]
|
location |
A Location object representing the location of this warning in the source. |
|
[R]
|
message |
The message associated with this warning. |
Class Public methods
new(message, location)
Link
Create a new warning 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 ParseWarning.
Source:
show
| on GitHub
def deconstruct_keys(keys)
{ message: message, location: location }
end
inspect()
Link
Returns a string representation of this warning.
Source:
show
| on GitHub
def inspect
"#<Prism::ParseWarning @message=#{@message.inspect} @location=#{@location.inspect}>"
end