module IRB::IrbLoader
def search_file_from_ruby_path(fn) # :nodoc:
def search_file_from_ruby_path(fn) # :nodoc: if File.absolute_path?(fn) return fn if File.exist?(fn) return nil end for path in $: if File.exist?(f = File.join(path, fn)) return f end end return nil end