Module: Pakyow::Support::Pipeline::Object
- Defined in:
- lib/pakyow/support/pipeline/object.rb
Overview
Makes an object passable through a pipeline.
Defined Under Namespace
Modules: Initializer
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/pakyow/support/pipeline/object.rb', line 9 def self.included(base) base.prepend Initializer end |
Instance Method Details
#halt ⇒ Object
23 24 25 26 |
# File 'lib/pakyow/support/pipeline/object.rb', line 23 def halt @__halted = true throw :halt, true end |
#halted? ⇒ Boolean
28 29 30 |
# File 'lib/pakyow/support/pipeline/object.rb', line 28 def halted? @__halted == true end |
#pipelined ⇒ Object
13 14 15 16 17 |
# File 'lib/pakyow/support/pipeline/object.rb', line 13 def pipelined tap do @__pipelined = true end end |
#pipelined? ⇒ Boolean
19 20 21 |
# File 'lib/pakyow/support/pipeline/object.rb', line 19 def pipelined? @__pipelined == true end |