Skip to content

Commit

Permalink
Add a line explaining that ordinary code can go between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Oct 30, 2024
1 parent 06ea9d9 commit 2ad17a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docsite/source/design-pattern.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ In monadic terms, the `#step` method in `Dry::Operation` acts similarly to the `

This behavior allows for clean composition of operations while handling potential failures at each step.

By expressing this behaviour via `#step`, dry-operation lets you intermingle ordinary Ruby code in between steps as required.

### Railway Oriented Programming

The design of dry-operation closely follows the concept of [Railway Oriented Programming](https://fsharpforfunandprofit.com/rop/), a way of structuring code that's especially useful for dealing with a series of operations that may fail.
Expand Down

0 comments on commit 2ad17a8

Please sign in to comment.