Class: Rake::Scope
    Do not use.  This class is for internal use only.
  
| Relationships & Source Files | |
| Namespace Children | |
| Classes: | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           LinkedList | |
| Instance Chain: 
          self,
           LinkedList,
          Enumerable | |
| Inherits: | Rake::LinkedList 
 | 
| Defined in: | lib/rake/scope.rb | 
Constant Summary
- 
    EMPTY =
    # File 'lib/rake/scope.rb', line 41Singleton null object for an empty scope. EmptyScope.new 
LinkedList - Inherited
  
Class Method Summary
LinkedList - Inherited
| .cons | Cons a new head onto the tail list. | 
| .empty | The standard empty list class for the given  | 
| .make | Make a list out of the given arguments. | 
| .new | |
Instance Attribute Summary
LinkedList - Inherited
| #empty? | Is the list empty?  | 
| #head, #tail | |
Instance Method Summary
- 
    
      #path  
    
    Path for the scope. 
- 
    
      #path_with_task_name(task_name)  
    
    Path for the scope + the named path. 
- 
    
      #trim(n)  
    
    Trim ninnermost scope levels from the scope.
LinkedList - Inherited
Constructor Details
This class inherits a constructor from Rake::LinkedList
Instance Method Details
#path
Path for the scope.
# File 'lib/rake/scope.rb', line 6
def path map(&:to_s).reverse.join(":") end
#path_with_task_name(task_name)
Path for the scope + the named path.
# File 'lib/rake/scope.rb', line 11
def path_with_task_name(task_name) "#{path}:#{task_name}" end
#trim(n)
Trim n innermost scope levels from the scope. In no case will this trim beyond the toplevel scope.
# File 'lib/rake/scope.rb', line 17
def trim(n) result = self while n > 0 && !result.empty? result = result.tail n -= 1 end result end