Module: Rake::DSL

Defined in:
lib/rake/opt/current_invocation_chain/patches/rake/dsl.rb

Instance Method Summary collapse

Instance Method Details

#current_invocation_chainObject



4
5
6
7
8
9
10
# File 'lib/rake/opt/current_invocation_chain/patches/rake/dsl.rb', line 4

def current_invocation_chain
  promise = Thread.current.promise
  while promise
    return promise.invocation_chain if promise.invocation_chain
    promise = promise.parent
  end
end