class Dry::Schema::Macros::DSL

def value(...)

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(...)
  append_macro(Macros::Value) do |macro|
    macro.call(...)
  end
end