class Daily::Txt::System

Constants

EDITOR_CANDIDATES

Public Class Methods

exec(command_path, arg) click to toggle source
# File lib/daily/txt/system.rb, line 30
def exec(command_path, arg)
  system(command_path, arg)
end
find_editor() click to toggle source
# File lib/daily/txt/system.rb, line 19
def find_editor
  editors = []
  EDITOR_CANDIDATES.each do |candidate|
    found = Which.which(candidate)
    if found && !found.empty?
      editors = editors + found
    end
  end
  editors
end
wait_input(question) click to toggle source
# File lib/daily/txt/system.rb, line 14
def wait_input(question)
  print question
  return gets.chomp
end