Module: Dry::Logic::Builder
- Defined in:
- lib/dry/logic/builder.rb
Defined Under Namespace
Classes: Context
Constant Summary collapse
- IGNORED_OPERATIONS =
%i[ Abstract Binary Unary ].freeze
- IGNORED_PREDICATES =
[ :predicate ].freeze
Class Method Summary collapse
-
.call(&context) ⇒ Builder::Result
Predicate and operation builder.
Instance Method Summary collapse
-
#call(&context) ⇒ Builder::Result
(also: #build)
Predicate and operation builder.
Class Method Details
.call(&context) ⇒ Builder::Result
Predicate and operation builder
31 32 33 |
# File 'lib/dry/logic/builder.rb', line 31 def call(&context) Context.instance.call(&context) end |
Instance Method Details
#call(&context) ⇒ Builder::Result Also known as: build
Predicate and operation builder
31 32 33 |
# File 'lib/dry/logic/builder.rb', line 31 def call(&context) Context.instance.call(&context) end |