Class: Mementus::Pipes::Node
- Inherits:
-
Object
- Object
- Mementus::Pipes::Node
- Defined in:
- lib/mementus/pipeline.rb
Instance Method Summary collapse
-
#initialize(id) ⇒ Node
constructor
A new instance of Node.
- #process(graph, id) ⇒ Object
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 |