123456789_123456789_123456789_123456789_123456789_

Class: RBS::Environment::ClassEntry

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, MultiEntry
Instance Chain:
self, MultiEntry
Inherits: RBS::Environment::MultiEntry
Defined in: lib/rbs/environment.rb

Constant Summary

MultiEntry - Inherited

D

Class Method Summary

MultiEntry - Inherited

Instance Attribute Summary

MultiEntry - Inherited

Instance Method Summary

Constructor Details

This class inherits a constructor from RBS::Environment::MultiEntry

Instance Method Details

#primary

[ GitHub ]

  
# File 'lib/rbs/environment.rb', line 83

def primary
  @primary ||= begin
                 validate_type_params
                 decls.find {|d| d.decl.super_class } || decls.first or raise("decls cannot be empty")
               end
end