module InteractiveEditor::Editors

Public Instance Methods

ed(*args) click to toggle source
# File lib/sigterm_extensions/interactive_editor.rb, line 110
def ed(*args)
  if ENV['EDITOR'].to_s.size > 0
    InteractiveEditor.edit(ENV['EDITOR'], self, *args)
  else
    raise "You need to set the EDITOR environment variable first"
  end
end