Sha256: b6588ff436aed9d35a67fcb185b03f4a6695f25ef1ca6e16d5db5c1f74ae6102

Contents?: true

Size: 259 Bytes

Versions: 23

Compression:

Stored size: 259 Bytes

Contents

class Array
  # Standard in Ruby 1.8.8. See official documentation[http://ruby-doc.org/core-1.9/classes/Array.html]
  class << self
    def try_convert(obj)
      Backports.try_convert(obj, Array, :to_ary)
    end unless method_defined? :try_convert
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
backports-3.0.3 lib/backports/1.9.1/array.rb
backports-3.0.2 lib/backports/1.9.1/array.rb
backports-3.0.1 lib/backports/1.9.1/array.rb
backports-3.0.0 lib/backports/1.9.1/array.rb
backports-2.8.2 lib/backports/1.9.1/array.rb
backports-2.8.1 lib/backports/1.9.1/array.rb
backports-2.8.0 lib/backports/1.9.1/array.rb
backports-2.7.1 lib/backports/1.9.1/array.rb
backports-2.7.0 lib/backports/1.9.1/array.rb
backports-2.6.7 lib/backports/1.9.1/array.rb
backports-2.6.6 lib/backports/1.9.1/array.rb
backports-2.6.5 lib/backports/1.9.1/array.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/backports-2.6.4/lib/backports/1.9.1/array.rb
backports-2.6.4 lib/backports/1.9.1/array.rb
backports-2.6.3 lib/backports/1.9.1/array.rb
backports-2.6.2 lib/backports/1.9.1/array.rb
backports-2.6.1 lib/backports/1.9.1/array.rb
backports-2.6.0 lib/backports/1.9.1/array.rb
backports-2.5.3 lib/backports/1.9.1/array.rb
backports-2.5.2 lib/backports/1.9.1/array.rb