lib/core/facets/string/rewrite.rb in facets-2.4.5 vs lib/core/facets/string/rewrite.rb in facets-2.5.0

- old
+ new

@@ -11,10 +11,10 @@ # The array containing rule-pairs (match, write). # # === Output: # The rewritten string. # - # CREDIT: George Moschovitis + # CREDIT: George Moschovitis def rewrite(rules) raise ArgumentError.new('The rules parameter is nil') unless rules rewritten_string = dup rules.each do |match,write|