module Metaractor::RunWithContext
Public Instance Methods
_build_context(context = {})
click to toggle source
# File lib/metaractor/run_with_context.rb, line 14 def _build_context(context = {}) @context = Interactor::Context.build(context) unless context.empty? end
run(context = {})
click to toggle source
Grab context at run and set things up.
Calls superclass method
# File lib/metaractor/run_with_context.rb, line 4 def run(context = {}) _build_context context super() end
run!(context = {})
click to toggle source
Calls superclass method
# File lib/metaractor/run_with_context.rb, line 9 def run!(context = {}) _build_context context super() end