Method: Fabulator::Core::Actions::Catch#run
- Defined in:
- lib/fabulator/core/actions/choose.rb
#run(context, autovivify = false) ⇒ Object
91 92 93 94 95 96 |
# File 'lib/fabulator/core/actions/choose.rb', line 91 def run(context, autovivify = false) @context.with(context) do |ctx| ctx.set_var(self.as, context) if self.as return self.run_actions(context) end end |