Class: Mementus::Pipes::Node

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

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Node

Returns a new instance of Node.



46
47
48
# File 'lib/mementus/pipeline.rb', line 46

def initialize(id)
  @id = id
end

Instance Method Details

#process(graph, id) ⇒ Object



50
51
52
# File 'lib/mementus/pipeline.rb', line 50

def process(graph, id)
  graph.node(id || @id)
end