Module: InteractiveEditor::Editors
- Defined in:
- lib/console_editor.rb
Instance Method Summary collapse
Instance Method Details
#ed(*args) ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/console_editor.rb', line 79 def ed(*args) if ENV['EDITOR'].to_s.size > 0 InteractiveEditor.edit(ENV['EDITOR'], *args) else raise "You need to set the EDITOR environment variable first" end end |