lib/hmote.rb in hmote-1.5.2 vs lib/hmote.rb in hmote-1.6.0
- old
+ new
@@ -32,10 +32,10 @@
def self.parse(template, context = self, vars = [])
terms = template.split(PATTERN)
parts = "Proc.new do |params, __o|\n params ||= {}; __o ||= ''\n".dup
- vars.each { |var| parts << format("%s = params[%p]\n", var, var) }
+ vars.each { |var| parts << sprintf("%s = params[%p]\n", var, var) }
while (term = terms.shift)
parts << parse_expression(terms, term)
end