lib/template/parser.rb in code-ruby-0.4.0 vs lib/template/parser.rb in code-ruby-0.5.0
- old
+ new
@@ -1,4 +1,19 @@
class Template
class Parser
+ def initialize(input)
+ @input = input
+ end
+
+ def self.parse(input)
+ new(input).parse
+ end
+
+ def parse
+ ::Template::Parser::Template.parse(input)
+ end
+
+ private
+
+ attr_reader :input
end
end