Sha256: 6aa57e08df8ed84e7e1e63e699c9707a1b7ce781d8404192b86ee80983d0f9d9

Contents?: true

Size: 231 Bytes

Versions: 4

Compression:

Stored size: 231 Bytes

Contents

class String

  unless defined?(chars) or defined?(::ActiveSupport) # 1.9 & ActiveSupport

    # Returns an array of characters.
    #
    #   "abc".chars  #=> ["a","b","c"]
    #
    def chars
      split(//)
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.6.0 lib/core/facets/string/chars.rb
facets-2.5.1 lib/core/facets/string/chars.rb
facets-2.5.0 lib/core/facets/string/chars.rb
facets-2.5.2 lib/core/facets/string/chars.rb