Class: Brine::Performing::ImmediatePerformer
- Inherits:
-
Object
- Object
- Brine::Performing::ImmediatePerformer
- Defined in:
- lib/brine/performing.rb
Overview
A passthrough performer which immediately invokes provided actions.
This has no instance state and therefore a Flyweight could be used, but too few instances are expected to warrant even the minor divergence.
Instance Method Summary collapse
-
#perform(actions) ⇒ Object
Perform the provided actions immediately.
Instance Method Details
#perform(actions) ⇒ Object
Perform the provided actions immediately.
26 27 28 |
# File 'lib/brine/performing.rb', line 26 def perform(actions) actions.call end |