module Rake
def from_pathname(path) # :nodoc:
leave everything else alone
Convert Pathname and Pathname-like objects to strings;
def from_pathname(path) # :nodoc: path = path.to_path if path.respond_to?(:to_path) path = path.to_str if path.respond_to?(:to_str) path end