class RBS::Environment::ClassEntry

公共实例方法

primary() 点击以切换源代码
# File rbs-3.8.0/lib/rbs/environment.rb, line 101
def primary
  @primary ||= begin
                 validate_type_params
                 decls.find {|d| d.decl.super_class } || decls.first or raise("decls cannot be empty")
               end
end