Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 175 Bytes
class Rake::Application
def rakefile_location
bt = caller
bt.map { |t| t[/([^:]+):/,1] }
bt.find {|str| str =~ /^#{@rakefile}$/ } || ""
end
end