Class: Array
Overview
:nodoc:
Instance Method Summary collapse
-
#extract_options! ⇒ Object
:nodoc:.
-
#to_hash ⇒ Object
:nodoc:.
Instance Method Details
#extract_options! ⇒ Object
:nodoc:
2 3 4 |
# File 'lib/dropbox/extensions/array.rb', line 2 def # :nodoc: last.is_a?(::Hash) ? pop : {} end |
#to_hash ⇒ Object
: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 |