Module: InteractiveEditor::Editors

Defined in:
lib/interactive_editor.rb

Instance Method Summary collapse

Instance Method Details

#ed(*args) ⇒ Object



110
111
112
113
114
115
116
# File 'lib/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