class RBS::Environment::ClassEntry

Public Instance Methods

primary() click to toggle source
# File rbs-3.4.4/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