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.



318
319
320
321
322
323
324
325
# File 'lib/rbs/errors.rb', line 318

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.



315
316
317
# File 'lib/rbs/errors.rb', line 315

def aliased_name
  @aliased_name
end

#locationObject (readonly)

Returns the value of attribute location.



316
317
318
# File 'lib/rbs/errors.rb', line 316

def location
  @location
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



314
315
316
# File 'lib/rbs/errors.rb', line 314

def original_name
  @original_name
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



313
314
315
# File 'lib/rbs/errors.rb', line 313

def type_name
  @type_name
end