Class: Template::Parser
- Inherits:
-
Object
- Object
- Template::Parser
- Defined in:
- lib/template/parser.rb,
lib/template/parser/template.rb
Defined Under Namespace
Classes: Template
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(input) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
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 |