class Array


Monkey patches for the ruby Array

def extract_options!

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