| Class | Rake::InvocationChain |
| In: |
lib/rake.rb
|
| Parent: | Object |
InvocationChain tracks the chain of task invocations to detect circular dependencies.
| EMPTY | = | EmptyInvocationChain.new |
# File lib/rake.rb, line 349
349: def initialize(value, tail)
350: @value = value
351: @tail = tail
352: end
# File lib/rake.rb, line 358
358: def append(value)
359: if member?(value)
360: fail RuntimeError, "Circular dependency detected: #{to_s} => #{value}"
361: end
362: self.class.new(value, self)
363: end