Class: Lynx::Pipe::Import
Instance Method Summary collapse
-
#initialize(file) ⇒ Import
constructor
A new instance of Import.
- #perform(command) ⇒ Object
Methods inherited from Basic
Constructor Details
#initialize(file) ⇒ Import
Returns a new instance of Import.
6 7 8 |
# File 'lib/lynx/pipe/import.rb', line 6 def initialize(file) @file = file end |
Instance Method Details
#perform(command) ⇒ Object
10 11 12 |
# File 'lib/lynx/pipe/import.rb', line 10 def perform(command) system("cat #{@file} | #{command}") end |