Sha256: 2cdab0644e7302aa424bc8cfa740b676fdd6b28cbb077bdeaaf0f9d890689339

Contents?: true

Size: 196 Bytes

Versions: 7

Compression:

Stored size: 196 Bytes

Contents

== String#shatter

  require 'facets/string/shatter'

  s = "<p>This<b>is</b>a test.</p>"
  r = s.shatter( /<.*?>/ )
  x = ["<p>", "This", "<b>", "is", "</b>", "a test.", "</p>"]
  r.assert == x

Version data entries

7 entries across 7 versions & 1 rubygems

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