Exception: RBS::WillSyntaxError

Inherits:
DefinitionError show all
Includes:
DetailedMessageable
Defined in:
lib/rbs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DetailedMessageable

#detailed_message

Constructor Details

#initialize(message, location:) ⇒ WillSyntaxError

Returns a new instance of WillSyntaxError.



598
599
600
601
# File 'lib/rbs/errors.rb', line 598

def initialize(message, location:)
  super "#{Location.to_string(location)}: #{message}"
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



596
597
598
# File 'lib/rbs/errors.rb', line 596

def location
  @location
end