| 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 391
391: def initialize(value, tail)
392: @value = value
393: @tail = tail
394: end
# File lib/rake.rb, line 400
400: def append(value)
401: if member?(value)
402: fail RuntimeError, "Circular dependency detected: #{to_s} => #{value}"
403: end
404: self.class.new(value, self)
405: end