Class: RBS::Environment::ClassEntry
- Inherits:
-
MultiEntry
- Object
- MultiEntry
- RBS::Environment::ClassEntry
- Defined in:
- lib/rbs/environment.rb
Constant Summary
Constants inherited from MultiEntry
Instance Attribute Summary
Attributes inherited from MultiEntry
Instance Method Summary collapse
Methods inherited from MultiEntry
#initialize, #insert, #type_params, #validate_type_params
Constructor Details
This class inherits a constructor from RBS::Environment::MultiEntry
Instance Method Details
#primary ⇒ Object
84 85 86 87 88 89 |
# File 'lib/rbs/environment.rb', line 84 def primary @primary ||= begin validate_type_params decls.find {|d| d.decl.super_class } || decls.first or raise("decls cannot be empty") end end |