Class: Tap::Tasks::Null

Inherits:
Tap::Task
  • Object
show all
Defined in:
lib/tap/tasks/null.rb

Overview

:startdoc::task a dev/null task

Null serves the same function as /dev/null, that is inputs directed to Null go nowhere. Null does not accept joins and will not execute the default app joins.

% tap load/yaml '[1, 2, 3]' -: null

Instance Method Summary collapse

Instance Method Details

#joinsObject



17
18
19
# File 'lib/tap/tasks/null.rb', line 17

def joins
  nil
end

#on_completeObject



21
22
23
# File 'lib/tap/tasks/null.rb', line 21

def on_complete
  raise "cannot be participate in joins: #{self}"
end

#process(*args) ⇒ Object



14
15
# File 'lib/tap/tasks/null.rb', line 14

def process(*args)
end