Module: ClusterExtensions::Array::ExtractOptions

Included in:
Array
Defined in:
lib/ext/array.rb,
lib/ext/cluster_extensions.rb
more...

Instance Method Summary collapse

Instance Method Details

#extract_options!Object

[View source]

4
5
6
# File 'lib/ext/array.rb', line 4

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