Class: Formalist::OutputCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/formalist/output_compiler.rb

Instance Method Summary collapse

Instance Method Details

#call(ast) ⇒ Object



3
4
5
# File 'lib/formalist/output_compiler.rb', line 3

def call(ast)
  ast.map { |node| visit(node) }.inject(:merge)
end