class Utils::Editor
def edit(*filenames)
def edit(*filenames) if filenames.size == 1 and source_location = filenames.first.source_location then edit_source_location(source_location) || edit_file(expand_globs(source_location[0, 1])) elsif source_locations = filenames.map(&:source_location).compact.full? filenames = expand_globs(source_locations.map(&:first)) edit_file(*filenames) end end