Exception: RBS::UnknownMethodAliasError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of UnknownMethodAliasError.



240
241
242
243
244
245
246
# File 'lib/rbs/errors.rb', line 240

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

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

Instance Attribute Details

#aliased_nameObject (readonly)

Returns the value of attribute aliased_name.



237
238
239
# File 'lib/rbs/errors.rb', line 237

def aliased_name
  @aliased_name
end

#locationObject (readonly)

Returns the value of attribute location.



238
239
240
# File 'lib/rbs/errors.rb', line 238

def location
  @location
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



236
237
238
# File 'lib/rbs/errors.rb', line 236

def original_name
  @original_name
end