Class: Brine::Performing::ImmediatePerformer

Inherits:
Object
  • Object
show all
Defined in:
lib/brine/performing.rb

Overview

Immediately invoke 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 specialization.

Instance Method Summary collapse

Instance Method Details

#perform(actions) ⇒ Object

Perform the provided actions immediately.

Parameters:

  • Provide (Proc)

    actions to be performed.



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

def perform(actions)
  actions.call
end