Class: Dry::Validation::Function Private

Inherits:
Object
  • Object
show all
Extended by:
Initializer
Defined in:
lib/dry/validation/function.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Abstract class for handling rule blocks

See Also:

Direct Known Subclasses

Macro, Rule

Instance Attribute Summary collapse

Instance Attribute Details

#blockProc (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Proc)

20
# File 'lib/dry/validation/function.rb', line 20

option :block

#block_optionsHash (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Hash)

25
# File 'lib/dry/validation/function.rb', line 25

option :block_options, default: -> { block ? map_keywords(block) : EMPTY_HASH }