method

rakefile_location

ruby latest stable - Class: Rake::Application

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

rakefile_location(backtrace=caller)
public

No documentation available.

# File lib/rake/application.rb, line 777
    def rakefile_location(backtrace=caller) # :nodoc:
      backtrace.map { |t| t[/([^:]+):/, 1] }

      re = /^#{@rakefile}$/
      re = /#{re.source}/ if windows?

      backtrace.find { |str| str =~ re } || ''
    end