Exception: RBS::GenericParameterMismatchError
- Inherits:
-
LoadingError
- Object
- StandardError
- BaseError
- LoadingError
- RBS::GenericParameterMismatchError
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#decl ⇒ Object
readonly
Returns the value of attribute decl.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, decl:) ⇒ GenericParameterMismatchError
constructor
A new instance of GenericParameterMismatchError.
Constructor Details
#initialize(name:, decl:) ⇒ GenericParameterMismatchError
Returns a new instance of GenericParameterMismatchError.
387 388 389 390 391 |
# File 'lib/rbs/errors.rb', line 387 def initialize(name:, decl:) @name = name @decl = decl super "#{Location.to_string decl.location}: Generic parameters mismatch: #{name}" end |
Instance Attribute Details
#decl ⇒ Object (readonly)
Returns the value of attribute decl.
385 386 387 |
# File 'lib/rbs/errors.rb', line 385 def decl @decl end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
384 385 386 |
# File 'lib/rbs/errors.rb', line 384 def name @name end |