Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/contactology/core_ext/array.rb

Direct Known Subclasses

Contactology::Issues

Instance Method Summary collapse

Instance Method Details

#extract_options!Object



2
3
4
5
6
7
8
# File 'lib/contactology/core_ext/array.rb', line 2

def extract_options!
  if last.is_a?(Hash) && last.instance_of?(Hash)
    pop
  else
    {}
  end
end