Exception: RBS::UnknownMethodAliasError

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(type_name:, original_name:, aliased_name:, location:) ⇒ UnknownMethodAliasError

Returns a new instance of UnknownMethodAliasError.



333
334
335
336
337
338
339
340
# File 'lib/rbs/errors.rb', line 333

def initialize(type_name:, original_name:, aliased_name:, location:)
  @type_name = type_name
  @original_name = original_name
  @aliased_name = aliased_name
  @location = location

  super "#{Location.to_string location}: Unknown method alias name: #{original_name} => #{aliased_name} (#{type_name})"
end

Instance Attribute Details

#aliased_nameObject (readonly)

Returns the value of attribute aliased_name.



330
331
332
# File 'lib/rbs/errors.rb', line 330

def aliased_name
  @aliased_name
end

#locationObject (readonly)

Returns the value of attribute location.



331
332
333
# File 'lib/rbs/errors.rb', line 331

def location
  @location
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



329
330
331
# File 'lib/rbs/errors.rb', line 329

def original_name
  @original_name
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



328
329
330
# File 'lib/rbs/errors.rb', line 328

def type_name
  @type_name
end