class Rake::InvocationChain
circular dependencies.
InvocationChain tracks the chain of task invocations to detect
###################################################################
def self.append(invocation, chain)
def self.append(invocation, chain) chain.append(invocation) end
def append(invocation)
Append an invocation to the chain of invocations. It is an error
def append(invocation) if member?(invocation) fail RuntimeError, "Circular dependency detected: #{to_s} => #{invocation}" end conj(invocation) end
def member?(invocation)
def member?(invocation) head == invocation || tail.member?(invocation) end
def prefix
def prefix "#{tail.to_s} => " end
def to_s
def to_s "#{prefix}#{head}" end