Class: Lynx::Pipe::Append

Inherits:
Basic
  • Object
show all
Defined in:
lib/lynx/pipe/append.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Append

Returns a new instance of Append.



7
8
9
# File 'lib/lynx/pipe/append.rb', line 7

def initialize(file)
  @file = file
end

Instance Method Details

#clearObject



15
16
17
18
# File 'lib/lynx/pipe/append.rb', line 15

def clear
  SystemOut.run("rm -rf #{@file}")
  self
end

#perform(command) ⇒ Object



11
12
13
# File 'lib/lynx/pipe/append.rb', line 11

def perform(command)
  SystemOut.run("#{command} >> #{@file}")
end