Sha256: 4374b81936ae663ee062ee03cd93dd7555dd4c69dcfdd2afb811140a6c3401ee

Contents?: true

Size: 203 Bytes

Versions: 8

Compression:

Stored size: 203 Bytes

Contents

require 'facets/string/words'

class String

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

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
facets-2.6.0 lib/core/facets/string/each_word.rb
facets-2.4.4 lib/core/facets/string/each_word.rb
facets-2.4.3 lib/core/facets/string/each_word.rb
facets-2.4.5 lib/core/facets/string/each_word.rb
facets-2.5.1 lib/core/facets/string/each_word.rb
facets-2.5.0 lib/core/facets/string/each_word.rb
facets-2.5.2 lib/core/facets/string/each_word.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/string/each_word.rb