Method: Pantry::FileEditor#initialize

Defined in:
lib/pantry/file_editor.rb

#initializeFileEditor

Returns a new instance of FileEditor.



17
18
19
20
# File 'lib/pantry/file_editor.rb', line 17

def initialize
  @editor = ENV['EDITOR']
  raise "Please set EDITOR environment variable to a text editor." unless @editor
end