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.



552
553
554
555
# File 'lib/rbs/errors.rb', line 552

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



550
551
552
# File 'lib/rbs/errors.rb', line 550

def location
  @location
end