Method: ToolsFiles.open_file

Defined in:
lib/lib/files.rb

.open_file(file, default_editor = nil) ⇒ Object



85
86
87
88
89
90
91
# File 'lib/lib/files.rb', line 85

def self.open_file(file, default_editor = nil)
  if default_editor.nil?
    TTY::Editor.open(file, command: :vi)
  else
    TTY::Editor.open(file, command: default_editor)
  end
end