Module: InteractiveEditor::Editors
- Defined in:
- lib/interactive_editor.rb
Instance Method Summary collapse
Instance Method Details
#ed(*args) ⇒ Object
100 101 102 103 104 105 106 |
# File 'lib/interactive_editor.rb', line 100 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 |