lib/faml/line_parser.rb in faml-0.2.6 vs lib/faml/line_parser.rb in faml-0.2.7

- old
+ new

@@ -1,9 +1,10 @@ module Faml class LineParser - attr_reader :lineno + attr_reader :filename, :lineno - def initialize(template_str) + def initialize(filename, template_str) + @filename = filename @lines = template_str.each_line.map { |line| line.chomp.rstrip } @lineno = 0 end def next_line