Method: Interaktor#run
- Defined in:
- lib/interaktor.rb
#run ⇒ Object
Invoke an interaktor instance along with all defined hooks. The ‘run` method is used internally by the `call` class method. After successful invocation of the interaktor, the instance is tracked within the context. If the context is failed or any error is raised, the context is rolled back.
70 71 72 73 |
# File 'lib/interaktor.rb', line 70 def run run! rescue Interaktor::Failure end |