class Dry::Schema::Macros::DSL
def value(*predicates, **opts, &block)
- Api: - public
Returns:
-
(Macros::Core)-
Other tags:
- Example: with a block -
Example: with a predicate with and without arguments -
Example: with a predicate with arguments -
Example: with a predicate -
Parameters:
-
predicate_opts(Hash) -- -
predicates(Array) --
Overloads:
-
value(*predicates, **predicate_opts)
def value(*predicates, **opts, &block) append_macro(Macros::Value) do |macro| macro.call(*predicates, **opts, &block) end end