Class: RubyEdit::Editor
Instance Method Summary collapse
- #edit_sourcefile ⇒ Object
-
#initialize ⇒ Editor
constructor
A new instance of Editor.
Methods inherited from Command
#command, #cursor, #editor, #exec_exist?, #execute, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize ⇒ Editor
Returns a new instance of Editor.
7 8 9 |
# File 'lib/ruby_edit/editor.rb', line 7 def initialize @config = RubyEdit.config end |
Instance Method Details
#edit_sourcefile ⇒ Object
11 12 13 |
# File 'lib/ruby_edit/editor.rb', line 11 def edit_sourcefile editor.open RubyEdit::SOURCE_FILE_LOCATION, command: @config.editor end |