Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/Array/extract_optionsX.rb

Overview

History: Stolen wholesale from ActiveSupport.

Instance Method Summary collapse

Instance Method Details

#extract_options!Object



10
11
12
# File 'lib/Array/extract_optionsX.rb', line 10

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