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.



237
238
239
240
241
242
243
# File 'lib/rbs/errors.rb', line 237

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.



234
235
236
# File 'lib/rbs/errors.rb', line 234

def aliased_name
  @aliased_name
end

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



233
234
235
# File 'lib/rbs/errors.rb', line 233

def original_name
  @original_name
end