class RBS::Environment::UseMap::Table
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/environment/use_map.rb, line 9 def initialize @known_types = Set[] @children = {} end
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/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