Class: Template::Parser

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

Defined Under Namespace

Classes: Template

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Parser

Returns a new instance of Parser.



5
6
7
# File 'lib/template/parser.rb', line 5

def initialize(input)
  @input = input
end

Class Method Details

.parse(input) ⇒ Object



9
10
11
# File 'lib/template/parser.rb', line 9

def self.parse(input)
  new(input).parse
end

Instance Method Details

#parseObject



13
14
15
# File 'lib/template/parser.rb', line 13

def parse
  ::Template::Parser::Template.parse(input)
end