In Files

  • rbs-2.1.0/lib/rbs/environment.rb

Methods

Class/Module Index [+]

Quicksearch

RBS::Environment::ContextUtil

Public Instance Methods

context() click to toggle source
 
               # File rbs-2.1.0/lib/rbs/environment.rb, line 12
def context
  @context ||= begin
                 (outer + [decl]).each.with_object([Namespace.root]) do |decl, array|
                   first = array.first or raise
                   array.unshift(first + decl.name.to_namespace)
                 end
               end
end
            
There is an updated format of the API docs for this version here.