Module: RBS::Environment::ContextUtil

Included in:
MultiEntry::D, SingleEntry
Defined in:
lib/rbs/environment.rb

Instance Method Summary collapse

Instance Method Details

#contextObject



13
14
15
16
17
18
19
# File 'lib/rbs/environment.rb', line 13

def context
  @context ||= begin
                 (outer + [decl]).each.with_object([Namespace.root]) do |decl, array|
                   array.unshift(array.first + decl.name.to_namespace)
                 end
               end
end