class RBS::Environment::UseMap::Table
Attributes
children[R]
known_types[R]
Public Class Methods
new()
click to toggle source
# File rbs-3.4.0/lib/rbs/environment/use_map.rb, line 9 def initialize @known_types = Set[] @children = {} end
Public Instance Methods
compute_children()
click to toggle source
# File rbs-3.4.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