Class: Rapid::Template::Parser

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

Defined Under Namespace

Classes: Engine

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Parser

Returns a new instance of Parser.



6
7
8
9
# File 'lib/rapid/template/parser.rb', line 6

def initialize content
  @content = content.clone
  @is_first = true
end

Instance Method Details

#parseObject



11
12
13
# File 'lib/rapid/template/parser.rb', line 11

def parse
  Engine.new(@content).root
end