Class: ActionConductor::ActionRunner
- Inherits:
-
Object
- Object
- ActionConductor::ActionRunner
- Defined in:
- lib/action_conductor/action_runner.rb
Instance Method Summary collapse
- #export(*options) ⇒ Object
-
#initialize(options = {}) ⇒ ActionRunner
constructor
A new instance of ActionRunner.
Constructor Details
#initialize(options = {}) ⇒ ActionRunner
Returns a new instance of ActionRunner.
4 5 6 7 |
# File 'lib/action_conductor/action_runner.rb', line 4 def initialize(={}) @controller = .fetch(:controller) @conductors = .fetch(:conductors) end |
Instance Method Details
#export(*options) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/action_conductor/action_runner.rb', line 9 def export(*) @exported ||= {} @exported[] ||= begin exported = () exported.length == 1 ? exported.first : exported end end |