123456789_123456789_123456789_123456789_123456789_

Class: RBS::Environment::ModuleEntry

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 92

def primary
  @primary ||= begin
                 validate_type_params
                 decls.first or raise("decls cannot be empty")
               end
end

#self_types

[ GitHub ]

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

def self_types
  decls.flat_map do |d|
    d.decl.self_types
  end.uniq
end