class Dry::Schema::Macros::DSL

def value(*predicates, &block)

Other tags:
    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, &block)
  append_macro(Macros::Value) do |macro|
    macro.call(*predicates, &block)
  end
end