Class: Lynx::Pipe::Import

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

Instance Method Summary collapse

Methods inherited from Basic

#clear

Constructor Details

#initialize(file) ⇒ Import

Returns a new instance of Import.



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

def initialize(file)
  @file = file
end

Instance Method Details

#perform(command) ⇒ Object



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

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