class Gem::Commands::OpenCommand

def open_editor path

def open_editor path
  Dir.chdir(path) do
    system(*@editor.split(/\s+/) + [path])
  end
end