Class: Riml::Compiler::MultiAssignNodeVisitor

Inherits:
Visitor
  • Object
show all
Defined in:
lib/riml/compiler.rb

Instance Method Summary collapse

Methods inherited from Visitor

#initialize, #visit

Constructor Details

This class inherits a constructor from Riml::Compiler::Visitor

Instance Method Details

#compile(node) ⇒ Object



329
330
331
332
333
334
335
# File 'lib/riml/compiler.rb', line 329

def compile(node)
  node.assigns.each do |assign|
    assign.force_newline = true
    assign.accept(visitor_for_node(assign))
  end
  node.compiled_output
end