Class: Array

Inherits:
Object show all
Defined in:
lib/dropbox/extensions/array.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#extract_options!Object

:nodoc:



2
3
4
# File 'lib/dropbox/extensions/array.rb', line 2

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

#to_hashObject

:nodoc:



6
7
8
# File 'lib/dropbox/extensions/array.rb', line 6

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