Exception: RBS::UnknownMethodAliasError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_name:, original_name:, aliased_name:, location:) ⇒ UnknownMethodAliasError

Returns a new instance of UnknownMethodAliasError.



281
282
283
284
285
286
287
288
# File 'lib/rbs/errors.rb', line 281

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.



278
279
280
# File 'lib/rbs/errors.rb', line 278

def aliased_name
  @aliased_name
end

#locationObject (readonly)

Returns the value of attribute location.



279
280
281
# File 'lib/rbs/errors.rb', line 279

def location
  @location
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



277
278
279
# File 'lib/rbs/errors.rb', line 277

def original_name
  @original_name
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



276
277
278
# File 'lib/rbs/errors.rb', line 276

def type_name
  @type_name
end