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.



574
575
576
577
# File 'lib/rbs/errors.rb', line 574

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



572
573
574
# File 'lib/rbs/errors.rb', line 572

def location
  @location
end