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.
574 575 576 577 |
# File 'lib/rbs/errors.rb', line 574 def initialize(, location:) super "#{Location.to_string(location)}: #{}" @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
572 573 574 |
# File 'lib/rbs/errors.rb', line 572 def location @location end |