Skip to content

Commit

Permalink
Fix Builder documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
k-dubil authored and flash-gordon committed Jul 7, 2024
1 parent eaa2011 commit 3f1f1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docsite/source/builder.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ layout: gem-single
name: dry-logic
---

Use Dry Logic's builder evaluate predicates and operations
Use Dry Logic's builder to evaluate predicates and operations.

``` ruby
require "dry/logic/builder"

is_zero = Dry::Logic::Builder.call do
lt?(0) ^ gt?(0)
lteq?(0) & gteq?(0)
end

is_zero.call(0).success? # => true
Expand Down

0 comments on commit 3f1f1de

Please sign in to comment.