module RBS::Environment::ContextUtil
Public Instance Methods
calculate_context(decls)
click to toggle source
# File rbs-2.8.2/lib/rbs/environment.rb, line 14 def calculate_context(decls) decls.each.with_object([Namespace.root]) do |decl, array| first = array.first or raise array.unshift(first + decl.name.to_namespace) end end