Sha256: b8be412b754adff5583a0bdac93ea147e4ba795b5b69ba45c1ef0d78c2ba00d3

Contents?: true

Size: 196 Bytes

Versions: 6

Compression:

Stored size: 196 Bytes

Contents

require 'facets/string/words'

class String

  # Iterate through each word of a string.
  #
  #   "a string".each_word { |word| ... }
  #
  def each_word(&block)
    words.each(&block)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-2.8.4 lib/core/facets/string/each_word.rb
facets-2.8.3 lib/core/facets/string/each_word.rb
facets-2.8.2 lib/core/facets/string/each_word.rb
facets-2.8.1 lib/core/facets/string/each_word.rb
facets-2.8.0 lib/core/facets/string/each_word.rb
facets-2.7.0 lib/core/facets/string/each_word.rb