Sha256: fc72355718820ddf0f15dc5dd82869b80210ab122efa190f2ea75ec6573f3d5e

Contents?: true

Size: 255 Bytes

Versions: 16

Compression:

Stored size: 255 Bytes

Contents

class Array # :nodoc:
  def extract_options! # :nodoc:
    last.is_a?(::Hash) ? pop : {}
  end unless method_defined?(:extract_options!)

  def to_hash # :nodoc:
    inject({}) { |hsh, (k,v)| hsh[k] = v  ; hsh }
  end unless method_defined?(:to_hash)
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
imgurapi-3.0.0 lib/imgurapi/extensions/array.rb
imgurapi-2.0.2 lib/imgur/extensions/array.rb
imgurapi-2.0.1 lib/imgur/extensions/array.rb
imgurapi-2.0.0 lib/imgur/extensions/array.rb
dropbox-1.3.0 lib/dropbox/extensions/array.rb
dropbox-1.2.3 lib/dropbox/extensions/array.rb
dropbox-1.2.2 lib/dropbox/extensions/array.rb
dropbox-1.2.1 lib/dropbox/extensions/array.rb
dropbox-1.2.0 lib/dropbox/extensions/array.rb
dropbox-1.1.2 lib/dropbox/extensions/array.rb
dropbox-1.1.1 lib/dropbox/extensions/array.rb
dropbox-aliix-1.1.0 lib/dropbox/extensions/array.rb
rdropbox-1.1.0 lib/extensions/array.rb
dropbox-1.1.0 lib/extensions/array.rb
dropbox-1.0.0 lib/extensions/array.rb
rdropbox-1.0.0 lib/extensions/array.rb