Class: ComposableStateMachine::DefaultCallbackRunner
- Inherits:
-
Object
- Object
- ComposableStateMachine::DefaultCallbackRunner
- Defined in:
- lib/composable_state_machine/default_callback_runner.rb
Overview
Default callback runner that executes callbacks in their current binding.
Class Method Summary collapse
-
.run_state_machine_callback(callback, *args) ⇒ Object
Runs a callback in its current binding.
Class Method Details
.run_state_machine_callback(callback, *args) ⇒ Object
Runs a callback in its current binding.
11 12 13 |
# File 'lib/composable_state_machine/default_callback_runner.rb', line 11 def self.run_state_machine_callback(callback, *args) callback.call(*args) end |