An opinionated implementation of the Command pattern for Ruby applications. Cuprum wraps your business logic in a consistent, object-oriented interface and features status and error management, composability and control flow management.
Cuprum implements the Command pattern for Ruby.
This is the documentation for Version 1.1 of Cuprum.
Cuprum defines the following core components:
#call
and returns a Cuprum::Result
.Cuprum::Command
. Each Result
has a #status
(either :success
or :failure
), and may have a #value
, an #error
, or both.#status
, #error
, and #value
.For a full list of defined classes and objects, see Reference.