Exception: RBS::WillSyntaxError
- Inherits:
-
DefinitionError
- Object
- StandardError
- BaseError
- DefinitionError
- RBS::WillSyntaxError
- Includes:
- DetailedMessageable
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(message, location:) ⇒ WillSyntaxError
constructor
A new instance of WillSyntaxError.
Methods included from DetailedMessageable
Constructor Details
#initialize(message, location:) ⇒ WillSyntaxError
Returns a new instance of WillSyntaxError.
552 553 554 555 |
# File 'lib/rbs/errors.rb', line 552 def initialize(, location:) super "#{Location.to_string(location)}: #{}" @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
550 551 552 |
# File 'lib/rbs/errors.rb', line 550 def location @location end |