class RBS::NoSuperclassFoundError
属性
location[R]
type_name[R]
公共类方法
check!(type_name, env:, location:) 点击切换源码
# File rbs-3.8.0/lib/rbs/errors.rb, line 178 def self.check!(type_name, env:, location:) if env.module_name?(type_name) return end raise new(type_name: type_name, location: location) end
new(type_name:, location:) 点击切换源码
调用父类方法
# File rbs-3.8.0/lib/rbs/errors.rb, line 171 def initialize(type_name:, location:) @type_name = type_name @location = location super "#{Location.to_string location}: Could not find super class: #{type_name}" end