Sha256: 8aa4dc95207ceb74f2f1118d966a9e9ee743608d3b7ffc866f358c318e919cb2

Contents?: true

Size: 157 Bytes

Versions: 7

Compression:

Stored size: 157 Bytes

Contents

== String#rewrite

  require 'facets/string/rewrite'

  s = "HELLO TOMMY!"
  rules = [[ /TOMMY/, 'MAN' ]]
  r = s.rewrite(rules)
  r.assert == "HELLO MAN!"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facets-3.0.0 demo/core/string/rewrite.rdoc
facets-2.9.3 qed/core/string/rewrite.rdoc
facets-2.9.2 qed/core/string/rewrite.rdoc
facets-2.9.1 qed/core/string/rewrite.rdoc
facets-2.9.0 qed/core/string/rewrite.rdoc
facets-2.9.0.pre.2 qed/core/string/rewrite.rdoc
facets-2.9.0.pre.1 qed/core/string/rewrite.rdoc