Sha256: cd4e24802778eb967709b559146d3432a8f5cd1416aa33e2d9f4648e95108af7

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

require 'nano/string/to_arr'

class String

  # Alias for #to_arr. See #to_arr for documentation.
  #
  # WARNING! Use this method with caution as its default behavior
  # (i.e. chars splitting) is nonconvential (unfortunately).
  #
  alias_method :to_a, :to_arr

end


#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
=begin test

  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_to_a
      arr = 'abc'
      assert_equal( ['a','b','c'], arr.to_a )
    end

  end

=end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/nano/string/to_a.rb