In Files

Parent

Rake::InvocationChain

                                                                  

InvocationChain tracks the chain of task invocations to detect circular dependencies.

Constants

EMPTY

Public Class Methods

append(value, chain) click to toggle source
     # File lib/rake.rb, line 430
430:     def self.append(value, chain)
431:       chain.append(value)
432:     end
new(value, tail) click to toggle source
     # File lib/rake.rb, line 410
410:     def initialize(value, tail)
411:       @value = value
412:       @tail = tail
413:     end

Public Instance Methods

append(value) click to toggle source
     # File lib/rake.rb, line 419
419:     def append(value)
420:       if member?(value)
421:         fail RuntimeError, "Circular dependency detected: #{to_s} => #{value}"
422:       end
423:       self.class.new(value, self)
424:     end
member?(obj) click to toggle source
     # File lib/rake.rb, line 415
415:     def member?(obj)
416:       @value == obj || @tail.member?(obj)
417:     end
to_s() click to toggle source
     # File lib/rake.rb, line 426
426:     def to_s
427:       "#{prefix}#{@value}"
428:     end

Private Instance Methods

prefix() click to toggle source
     # File lib/rake.rb, line 436
436:     def prefix
437:       "#{@tail.to_s} => "
438:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.