In Files

  • rbs-1.0.4/lib/rbs/environment.rb

Class/Module Index [+]

Quicksearch

RBS::Environment::ModuleEntry

Public Instance Methods

primary() click to toggle source
 
               # File rbs-1.0.4/lib/rbs/environment.rb, line 75
def primary
  @primary ||= begin
                 validate_type_params
                 decls.first or raise("decls cannot be empty")
               end
end
            
self_types() click to toggle source
 
               # File rbs-1.0.4/lib/rbs/environment.rb, line 69
def self_types
  decls.flat_map do |d|
    d.decl.self_types
  end.uniq
end