class Dry::Schema::Macros::Key

def maybe(*args, **opts, &block)

Other tags:
    Api: - public

Returns:
  • (Macros::Key) -

Other tags:
    See: Macros::Key#value -
def maybe(*args, **opts, &block)
  extract_type_spec(*args, nullable: true) do |*predicates, type_spec:|
    append_macro(Macros::Maybe) do |macro|
      macro.call(*predicates, **opts, &block)
    end
  end
end