Class: YARP::ParseWarning
- Inherits:
-
Object
- Object
- YARP::ParseWarning
- Defined in:
- lib/yarp.rb,
ext/yarp/extension.c
Overview
This represents a warning 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) ⇒ ParseWarning
constructor
A new instance of ParseWarning.
- #inspect ⇒ Object
Constructor Details
#initialize(message, location) ⇒ ParseWarning
Returns a new instance of ParseWarning.
191 192 193 194 |
# File 'lib/yarp.rb', line 191 def initialize(, location) @message = @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
189 190 191 |
# File 'lib/yarp.rb', line 189 def location @location end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
189 190 191 |
# File 'lib/yarp.rb', line 189 def @message end |
Instance Method Details
#deconstruct_keys(keys) ⇒ Object
196 197 198 |
# File 'lib/yarp.rb', line 196 def deconstruct_keys(keys) { message: , location: location } end |
#inspect ⇒ Object
200 201 202 |
# File 'lib/yarp.rb', line 200 def inspect "#<YARP::ParseWarning @message=#{@message.inspect} @location=#{@location.inspect}>" end |