Class: BotPlatform::Dialogs::WaterfallStep
- Inherits:
-
Object
- Object
- BotPlatform::Dialogs::WaterfallStep
- Defined in:
- lib/bot_platform/dialogs/waterfall_step.rb
Overview
a delegate class
Instance Method Summary collapse
- #do_step(step_ctx) ⇒ Object
-
#initialize(&step) ⇒ WaterfallStep
constructor
A new instance of WaterfallStep.
Constructor Details
#initialize(&step) ⇒ WaterfallStep
Returns a new instance of WaterfallStep.
8 9 10 |
# File 'lib/bot_platform/dialogs/waterfall_step.rb', line 8 def initialize(&step) @step = step end |
Instance Method Details
#do_step(step_ctx) ⇒ Object
12 13 14 |
# File 'lib/bot_platform/dialogs/waterfall_step.rb', line 12 def do_step(step_ctx) @step.call step_ctx end |