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.
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_name ⇒ Object (readonly)
Returns the value of attribute aliased_name.
234 235 236 |
# File 'lib/rbs/errors.rb', line 234 def aliased_name @aliased_name end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
235 236 237 |
# File 'lib/rbs/errors.rb', line 235 def location @location end |
#original_name ⇒ Object (readonly)
Returns the value of attribute original_name.
233 234 235 |
# File 'lib/rbs/errors.rb', line 233 def original_name @original_name end |