Class: Dry::Validation::SchemaCompiler
- Inherits:
-
Logic::RuleCompiler
- Object
- Logic::RuleCompiler
- Dry::Validation::SchemaCompiler
- Defined in:
- lib/dry/validation/schema_compiler.rb
Instance Method Summary collapse
Instance Method Details
#visit_guard(node) ⇒ Object
36 37 38 39 |
# File 'lib/dry/validation/schema_compiler.rb', line 36 def visit_guard(node) deps, other = node Guard.new(visit(other), deps) end |
#visit_schema(klass) ⇒ Object
32 33 34 |
# File 'lib/dry/validation/schema_compiler.rb', line 32 def visit_schema(klass) klass.new end |
#visit_type(type) ⇒ Object
41 42 43 |
# File 'lib/dry/validation/schema_compiler.rb', line 41 def visit_type(type) type.rule end |