Class: Formalist::Form::ValidityCheck
- Inherits:
-
Object
- Object
- Formalist::Form::ValidityCheck
- Defined in:
- lib/formalist/form/validity_check.rb
Instance Method Summary collapse
- #call(form_ast) ⇒ Object (also: #[])
Instance Method Details
#call(form_ast) ⇒ Object Also known as: []
4 5 6 |
# File 'lib/formalist/form/validity_check.rb', line 4 def call(form_ast) form_ast.map { |node| visit(node) }.all? end |