Class: Rapid::Template::Parser::Engine

Inherits:
Erubis::Basic::Engine
  • Object
show all
Defined in:
lib/rapid/template/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Engine

Returns a new instance of Engine.



17
18
19
20
21
# File 'lib/rapid/template/parser.rb', line 17

def initialize *args
  @nodes = []
  @stack = [@nodes]
  super *args
end

Instance Method Details

#rootObject



23
24
25
# File 'lib/rapid/template/parser.rb', line 23

def root
  Template::Node::Root.new @nodes
end