Class: Brine::Performing::ImmediatePerformer

Inherits:
Object
  • Object
show all
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

Instance Method Details

#perform(actions) ⇒ Object

Perform the provided actions immediately.

Parameters:

  • A (Proc)

    thunk of actions to be performed.



26
27
28
# File 'lib/brine/performing.rb', line 26

def perform(actions)
  actions.call
end