Class: Pipeline::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/pipeline/operation.rb

Direct Known Subclasses

EmptyOperation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(next_op, data = nil) ⇒ Operation

Returns a new instance of Operation.



5
6
7
8
# File 'lib/pipeline/operation.rb', line 5

def initialize(next_op, data=nil)
  @next_op = next_op
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/pipeline/operation.rb', line 3

def data
  @data
end

#next_opObject (readonly)

Returns the value of attribute next_op.



3
4
5
# File 'lib/pipeline/operation.rb', line 3

def next_op
  @next_op
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
# File 'lib/pipeline/operation.rb', line 10

def call(env)
  @next_op.call(env)
end