# File lib/innate.rb, line 185 def go_figure_root(backtrace, options) if root = options[:root] root elsif file = options[:file] File.dirname(file) elsif File.file?('start.rb') Dir.pwd else root = File.dirname(backtrace[0][/^(.*?):\d+/, 1]) Log.warn "No explicit root folder found, assuming it is #{root}" root end end