Class: RBS::Environment::ModuleEntry
- Inherits:
-
MultiEntry
- Object
- MultiEntry
- RBS::Environment::ModuleEntry
- Defined in:
- lib/rbs/environment.rb
Constant Summary
Constants inherited from MultiEntry
RBS::Environment::MultiEntry::D
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
74 75 76 77 78 79 |
# File 'lib/rbs/environment.rb', line 74 def primary @primary ||= begin validate_type_params decls.first or raise("decls cannot be empty") end end |
#self_types ⇒ Object
68 69 70 71 72 |
# File 'lib/rbs/environment.rb', line 68 def self_types decls.flat_map do |d| d.decl.self_types end.uniq end |