Class: Rake::InvocationChain
| 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/invocation_chain.rb | 
Overview
InvocationChain tracks the chain of task invocations to detect circular dependencies.
Constant Summary
LinkedList - Inherited
Class Method Summary
- 
    
      .append(invocation, chain)  
    
    Class level append. 
LinkedList - Inherited
| .cons | Cons a new head onto the tail list. | 
| .empty | The standard empty list class for the given LinkedList class. | 
| .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
- 
    
      #append(invocation)  
    
    Append an invocation to the chain of invocations. 
- 
    
      #member?(invocation)  ⇒ Boolean 
    
    Is the invocation already in the chain? 
- 
    
      #to_s  
    
    Convert to string, ie: TOP => invocation => invocation. 
- #prefix private
LinkedList - Inherited
Constructor Details
This class inherits a constructor from Rake::LinkedList
Class Method Details
.append(invocation, chain)
Class level append.
# File 'lib/rake/invocation_chain.rb', line 27
def self.append(invocation, chain) chain.append(invocation) end
Instance Method Details
#append(invocation)
Append an invocation to the chain of invocations. It is an error if the invocation already listed.
    #member?(invocation)  ⇒ Boolean 
  
Is the invocation already in the chain?
# File 'lib/rake/invocation_chain.rb', line 8
def member?(invocation) head == invocation || tail.member?(invocation) end
#prefix (private)
[ GitHub ]# File 'lib/rake/invocation_chain.rb', line 33
def prefix "#{tail} => " end
#to_s
Convert to string, ie: TOP => invocation => invocation
# File 'lib/rake/invocation_chain.rb', line 22
def to_s "#{prefix}#{head}" end