Class: Fluent::Pipeline

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/pipeline.rb,
lib/fluent/pipeline/version.rb

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.dispatch(passable) ⇒ Object



7
8
9
# File 'lib/fluent/pipeline.rb', line 7

def self.dispatch(passable)
  new(passable)
end

Instance Method Details

#then(callback) ⇒ Object



21
22
23
24
# File 'lib/fluent/pipeline.rb', line 21

def then(callback)
  handle_pipes
  callback.call(passable)
end

#through(pipes) ⇒ Object



11
12
13
14
# File 'lib/fluent/pipeline.rb', line 11

def through(pipes)
  self.pipes = pipes
  self
end

#via(method_name) ⇒ Object



16
17
18
19
# File 'lib/fluent/pipeline.rb', line 16

def via(method_name)
  self.pipe_method = method_name
  self
end