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:, entry:) ⇒ SuperclassMismatchError

Returns a new instance of SuperclassMismatchError.



250
251
252
253
254
# File 'lib/rbs/errors.rb', line 250

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.



248
249
250
# File 'lib/rbs/errors.rb', line 248

def entry
  @entry
end

#nameObject (readonly)

Returns the value of attribute name.



247
248
249
# File 'lib/rbs/errors.rb', line 247

def name
  @name
end