class Dry::Schema::Macros::Key
def value(*args, **opts, &block)
- Api: - public
Other tags:
- See: Macros::DSL#value -
Returns:
-
(Macros::Key)
-
Other tags:
- Example: with a block -
Example: with a predicate with arguments -
Example: with a predicate -
Parameters:
-
predicate_opts
(Hash
) -- -
predicates
(Array
) -- -
type_spec
(Symbol, Types::Type, Array
) --
Overloads:
-
value(type_spec, *predicates, **predicate_opts)
def value(*args, **opts, &block) extract_type_spec(*args) do |*predicates, type_spec:| super(*predicates, type_spec: type_spec, **opts, &block) end end