Class: Array

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

Overview

borrowed from ActiveSupport

Instance Method Summary collapse

Instance Method Details

#extract_options!Object



3
4
5
# File 'lib/qcmd/core_ext/array.rb', line 3

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