Class: BothIsGood::Invocation
- Inherits:
-
Object
- Object
- BothIsGood::Invocation
- Includes:
- Memoization
- Defined in:
- lib/both_is_good/invocation.rb
Instance Method Summary collapse
-
#initialize(local_config, target, args, kwargs) ⇒ Invocation
constructor
A new instance of Invocation.
- #run ⇒ Object
Methods included from Memoization
Constructor Details
#initialize(local_config, target, args, kwargs) ⇒ Invocation
Returns a new instance of Invocation.
5 6 7 8 9 10 11 |
# File 'lib/both_is_good/invocation.rb', line 5 def initialize(local_config, target, args, kwargs) @config = local_config @target = target @args = args @kwargs = kwargs @memo = {} end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 |
# File 'lib/both_is_good/invocation.rb', line 13 def run invoke_primary! invoke_secondary! if trigger? primary_result end |