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-3.1.0 lib/core/facets/string/words.rb
facets-3.0.0 lib/core/facets/string/words.rb
facets-2.9.3 lib/core/facets/string/words.rb
facets-2.9.2 src/core/facets/string/words.rb
facets-2.9.2 lib/core/facets/string/words.rb
facets-2.9.1 lib/core/facets/string/words.rb
facets-2.9.0 lib/core/facets/string/words.rb
facets-2.9.0.pre.2 lib/core/facets/string/words.rb
facets-2.9.0.pre.1 lib/core/facets/string/words.rb
facets-2.8.4 lib/core/facets/string/words.rb
facets-2.8.3 lib/core/facets/string/words.rb
facets-2.8.2 lib/core/facets/string/words.rb
facets-2.8.1 lib/core/facets/string/words.rb
facets-2.8.0 lib/core/facets/string/words.rb
facets-2.7.0 lib/core/facets/string/words.rb
facets-2.6.0 lib/core/facets/string/words.rb
facets-2.4.3 lib/core/facets/string/words.rb
facets-2.4.4 lib/core/facets/string/words.rb
facets-2.4.5 lib/core/facets/string/words.rb
facets-2.5.1 lib/core/facets/string/words.rb