Exception: RBS::SuperclassMismatchError

Inherits:
DefinitionError show all
Defined in:
lib/rbs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, entry:) ⇒ SuperclassMismatchError

Returns a new instance of SuperclassMismatchError.



295
296
297
298
299
# File 'lib/rbs/errors.rb', line 295

def initialize(name:, 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.



293
294
295
# File 'lib/rbs/errors.rb', line 293

def entry
  @entry
end

#nameObject (readonly)

Returns the value of attribute name.



292
293
294
# File 'lib/rbs/errors.rb', line 292

def name
  @name
end