Class: Formalist::OutputCompiler
- Inherits:
-
Object
- Object
- Formalist::OutputCompiler
- Defined in:
- lib/formalist/output_compiler.rb
Constant Summary collapse
- FORM_TYPES =
%w[ bool date date_time decimal float int time ].freeze
Instance Method Summary collapse
Instance Method Details
#call(ast) ⇒ Object
15 16 17 |
# File 'lib/formalist/output_compiler.rb', line 15 def call(ast) ast.map { |node| visit(node) }.inject(:merge) end |