Class: Porch::MethodStepDecorator
- Inherits:
-
Object
- Object
- Porch::MethodStepDecorator
- Defined in:
- lib/porch/step_decorators/method_step_decorator.rb
Instance Attribute Summary collapse
-
#organizer ⇒ Object
readonly
Returns the value of attribute organizer.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Class Method Summary collapse
Instance Method Summary collapse
- #execute(context) ⇒ Object
-
#initialize(step, organizer) ⇒ MethodStepDecorator
constructor
A new instance of MethodStepDecorator.
Constructor Details
#initialize(step, organizer) ⇒ MethodStepDecorator
Returns a new instance of MethodStepDecorator.
5 6 7 8 |
# File 'lib/porch/step_decorators/method_step_decorator.rb', line 5 def initialize(step, organizer) @step = step @organizer = organizer end |
Instance Attribute Details
#organizer ⇒ Object (readonly)
Returns the value of attribute organizer.
3 4 5 |
# File 'lib/porch/step_decorators/method_step_decorator.rb', line 3 def organizer @organizer end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
3 4 5 |
# File 'lib/porch/step_decorators/method_step_decorator.rb', line 3 def step @step end |
Class Method Details
.decorates?(step) ⇒ Boolean
16 17 18 |
# File 'lib/porch/step_decorators/method_step_decorator.rb', line 16 def self.decorates?(step) step.is_a?(Symbol) || step.is_a?(String) end |