class Dry::Schema::Macros::DSL
def filled(*args, **opts, &block)
- Api: - public
Returns:
-
(Macros::Core)
-
Other tags:
- Example: with a type spec and a predicate -
Example: with a type spec -
def filled(*args, **opts, &block) extract_type_spec(args) do |*predicates, type_spec:, type_rule:| append_macro(Macros::Filled) do |macro| macro.call(*predicates, type_spec: type_spec, type_rule: type_rule, **opts, &block) end end end