Exception: RBS::UnknownMethodAliasError
- Inherits:
-
StandardError
- Object
- StandardError
- RBS::UnknownMethodAliasError
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#aliased_name ⇒ Object
readonly
Returns the value of attribute aliased_name.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#original_name ⇒ Object
readonly
Returns the value of attribute original_name.
Instance Method Summary collapse
-
#initialize(original_name:, aliased_name:, location:) ⇒ UnknownMethodAliasError
constructor
A new instance of UnknownMethodAliasError.
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_name ⇒ Object (readonly)
Returns the value of attribute aliased_name.
237 238 239 |
# File 'lib/rbs/errors.rb', line 237 def aliased_name @aliased_name end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
238 239 240 |
# File 'lib/rbs/errors.rb', line 238 def location @location end |
#original_name ⇒ Object (readonly)
Returns the value of attribute original_name.
236 237 238 |
# File 'lib/rbs/errors.rb', line 236 def original_name @original_name end |