Exception: RBS::SuperclassMismatchError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, super_classes:, entry:) ⇒ SuperclassMismatchError

Returns a new instance of SuperclassMismatchError.



262
263
264
265
266
# File 'lib/rbs/errors.rb', line 262

def initialize(name:, super_classes:, entry:)
  @name = name
  @entry = entry
  super "#{Location.to_string entry.primary.decl.location}: Superclass mismatch: #{name}"
end

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry.



260
261
262
# File 'lib/rbs/errors.rb', line 260

def entry
  @entry
end

#nameObject (readonly)

Returns the value of attribute name.



259
260
261
# File 'lib/rbs/errors.rb', line 259

def name
  @name
end