Sha256: bfe769182d528bba7a962488f7131efbadc1f60cfbd8fc799009e9e6f28fa624

Contents?: true

Size: 145 Bytes

Versions: 23

Compression:

Stored size: 145 Bytes

Contents

class String

  # Returns an array of characters.
  #
  #   "abc 123".words  #=> ["abc","123"]
  #
  def words
    self.split(/\s+/)
  end

end

Version data entries

23 entries across 22 versions & 2 rubygems

Version Path
facets-2.5.0 lib/core/facets/string/words.rb
facets-2.5.2 lib/core/facets/string/words.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/string/words.rb