lib/templatable.rb in tbpgr_utils-0.0.150 vs lib/templatable.rb in tbpgr_utils-0.0.151

- old
+ new

@@ -10,10 +10,10 @@ define_method :get_template do template end define_method :get_placeholders do - ret = template.scan /<%=placeholders\[:(.*)\]%>/ + ret = template.scan(/<%=placeholders\[:(.*)\]%>/) ret_hash = {} ret.each { |v| ret_hash[v.first.to_sym] = v.first } ret_hash end end