Exception: RBS::GenericParameterMismatchError
- Inherits:
-
StandardError
- Object
- StandardError
- 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.
319 320 321 322 323 |
# File 'lib/rbs/errors.rb', line 319 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.
317 318 319 |
# File 'lib/rbs/errors.rb', line 317 def decl @decl end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
316 317 318 |
# File 'lib/rbs/errors.rb', line 316 def name @name end |