Sha256: 7d13aa9196fb4278027151f3bed56d99d1d2224535156c7b19f9509c065b7644

Contents?: true

Size: 211 Bytes

Versions: 9

Compression:

Stored size: 211 Bytes

Contents

class String

  # Returns an array of characters.
  #
  #   "abc".characters.to_a  #=> ["a","b","c"]
  #
  # TODO: Probably should make this an enumerator. With #scan?
  def characters
    split(//)
  end

end

Version data entries

9 entries across 8 versions & 1 rubygems

Version Path
facets-3.1.0 lib/core/facets/string/characters.rb
facets-3.0.0 lib/core/facets/string/characters.rb
facets-2.9.3 lib/core/facets/string/characters.rb
facets-2.9.2 lib/core/facets/string/characters.rb
facets-2.9.2 src/core/facets/string/characters.rb
facets-2.9.1 lib/core/facets/string/characters.rb
facets-2.9.0 lib/core/facets/string/characters.rb
facets-2.9.0.pre.2 lib/core/facets/string/characters.rb
facets-2.9.0.pre.1 lib/core/facets/string/characters.rb