Module: Hanami::Validations::Form::ClassMethods Private

Defined in:
lib/hanami/validations/form.rb

Overview

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

Since:

  • 0.6.0

Instance Method Summary collapse

Instance Method Details

#validations(&blk) ⇒ Object

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.

Since:

  • 2.0.0



34
35
36
# File 'lib/hanami/validations/form.rb', line 34

def validations(&blk)
  @_validator = Class.new(BaseValidator) { params(&blk) }.new
end