composable_operations
composable_operations copied to clipboard
Composable Operations is a tool set for creating operations and assembling multiple of these operations in operation pipelines.
Build wrapper operations that allow to `halt` or `fail` an operation pipeline. This way calls calls to `halt` and `fail` that contextually make sense in a pipeline but not in...
`Operation#halt` with one argument should set the `message` to `nil` and the result to the given argument and not vice versa.
Build a wrapper operation that takes a block of execution instructions. Change `ComposedOperation.use` to construct these operations when called with a block.
When somebody tries to invoke a `protected` or `private`, `method_missing` can be used to implement smarter error handling since `method_missing` is invoked even though the `protected` or `private` method is...
Hi, I think that fail and halt help when we need to apply all the operations, but sometimes we could skip a operation. I'm just doing an if in the...