Method: CronEdit::FileCrontab#initialize

Defined in:
lib/cronedit.rb

#initialize(anInputFile = nil, anOutputFile = nil) ⇒ FileCrontab

anInputFile and anOutputFile can be either filename - to r/w the file, ‘-’ to use STDIN/STDOUT, or nil for no input/output



323
324
325
326
327
328
329
# File 'lib/cronedit.rb', line 323

def initialize anInputFile = nil, anOutputFile = nil
    super nil
    @input = anInputFile
    @opts[:close_input] = false if @input=='-'
    @output = anOutputFile
    @opts[:close_output] = false if @output=='-'
end