class RBS::Environment::UseMap::Table
Attributes
Public Class Methods
() → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/environment/use_map.rb, line 9 def initialize @known_types = Set[] @children = {} end
Public Instance Methods
() → self
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/environment/use_map.rb, line 14 def compute_children children.clear known_types.each do |type| unless type.namespace.empty? children[type.namespace] ||= Set[] children[type.namespace] << type end end self end