class Porch::MethodStepDecorator
Attributes
organizer[R]
step[R]
Public Class Methods
decorates?(step)
click to toggle source
# File lib/porch/step_decorators/method_step_decorator.rb, line 16 def self.decorates?(step) step.is_a?(Symbol) || step.is_a?(String) end
new(step, organizer)
click to toggle source
# File lib/porch/step_decorators/method_step_decorator.rb, line 5 def initialize(step, organizer) @step = step @organizer = organizer end
Public Instance Methods
execute(context)
click to toggle source
# File lib/porch/step_decorators/method_step_decorator.rb, line 10 def execute(context) ctx = Context.new(context) organizer.send step, ctx ctx end