class RBS::NoSuperclassFoundError

Attributes

location[R]
type_name[R]

Public Class Methods

check!(type_name, env:, location:) click to toggle source
# File rbs-2.8.2/lib/rbs/errors.rb, line 150
def self.check!(type_name, env:, location:)
  if decl = env.class_decls[type_name]
    return
  end

  raise new(type_name: type_name, location: location)
end
new(type_name:, location:) click to toggle source
Calls superclass method
# File rbs-2.8.2/lib/rbs/errors.rb, line 143
def initialize(type_name:, location:)
  @type_name = type_name
  @location = location

  super "#{Location.to_string location}: Could not find super class: #{type_name}"
end