Class: RubyEdit::Editor

Inherits:
Command show all
Defined in:
lib/ruby_edit/editor.rb

Instance Method Summary collapse

Methods inherited from Command

#command, #cursor, #editor, #exec_exist?, #execute, #generator, #pager, #platform, #prompt, #screen, #which

Constructor Details

#initializeEditor

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_sourcefileObject



11
12
13
# File 'lib/ruby_edit/editor.rb', line 11

def edit_sourcefile
  editor.open RubyEdit::SOURCE_FILE_LOCATION, command: @config.editor
end