Sha256: 74b7f16e9b39952af7416c67f19881aff78f7699c16b3273d270ccf3fe88ea94
Contents?: true
Size: 265 Bytes
Versions: 10
Compression:
Stored size: 265 Bytes
Contents
require 'facets/string/words' class String # Iterate through each word of a string. # # a = [] # # "list of words".each_word { |word| a << word } # # a #=> ['list', 'of', 'words'] # def each_word(&block) words.each(&block) end end
Version data entries
10 entries across 9 versions & 2 rubygems