Exception: RBS::GenericParameterMismatchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, decl:) ⇒ GenericParameterMismatchError

Returns a new instance of GenericParameterMismatchError.



287
288
289
290
291
# File 'lib/rbs/errors.rb', line 287

def initialize(name:, decl:)
  @name = name
  @decl = decl
  super "#{Location.to_string decl.location}: Generic parameters mismatch: #{name}"
end

Instance Attribute Details

#declObject (readonly)

Returns the value of attribute decl.



285
286
287
# File 'lib/rbs/errors.rb', line 285

def decl
  @decl
end

#nameObject (readonly)

Returns the value of attribute name.



284
285
286
# File 'lib/rbs/errors.rb', line 284

def name
  @name
end