Class: Magnetite::Routing::Pipeline
- Inherits:
- BasicObject
- Defined in:
- lib/magnetite/routing/pipeline.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#plugs ⇒ Object
readonly
Returns the value of attribute plugs.
Instance Method Summary collapse
-
#initialize(name) ⇒ Pipeline
constructor
A new instance of Pipeline.
- #plug(name, *arguments) ⇒ Object
Constructor Details
#initialize(name) ⇒ Pipeline
Returns a new instance of Pipeline.
7 8 9 10 |
# File 'lib/magnetite/routing/pipeline.rb', line 7 def initialize(name) @name = name @plugs = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/magnetite/routing/pipeline.rb', line 5 def name @name end |
#plugs ⇒ Object (readonly)
Returns the value of attribute plugs.
5 6 7 |
# File 'lib/magnetite/routing/pipeline.rb', line 5 def plugs @plugs end |
Instance Method Details
#plug(name, *arguments) ⇒ Object
12 13 14 |
# File 'lib/magnetite/routing/pipeline.rb', line 12 def plug(name, *arguments) @plugs << [plug_class(name), *arguments] end |