Class: Jabs::Engine

Inherits:
Fold::Engine
  • Object
show all
Defined in:
lib/jabs.rb

Instance Method Summary collapse

Instance Method Details

#render(context = nil) ⇒ Object



299
300
301
302
303
304
# File 'lib/jabs.rb', line 299

def render context=nil
  @p = precompiler_class.new
  root = Johnson::Nodes::SourceElements.new 0, 0
  @p.fold(lines).children.each{|c|root << @p.johnsonize(c.render)}
  root.to_ecma
end