Module: Validate::AST

Defined in:
lib/validate/ast.rb

Defined Under Namespace

Modules: Combinator, Rules Classes: DefinitionContext, Generator

Constant Summary collapse

CORE_CONSTRAINTS =
%i[
  not_nil not_blank not_empty
  is_a one_of validate
  min max equal match
  valid each_value unique
  length
].freeze

Class Method Summary collapse

Class Method Details

.build(*args, &block) ⇒ Object



6
7
8
9
10
# File 'lib/validate/ast.rb', line 6

def self.build(*args, &block)
  Generator.new
           .generate(*args, &block)
           .freeze
end