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.



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