Exception: RBS::GenericParameterMismatchError
- Inherits:
-
LoadingError
- Object
- StandardError
- ErrorBase
- 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.
329 330 331 332 333 |
# File 'lib/rbs/errors.rb', line 329 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.
327 328 329 |
# File 'lib/rbs/errors.rb', line 327 def decl @decl end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
326 327 328 |
# File 'lib/rbs/errors.rb', line 326 def name @name end |