Class: Array

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

Instance Method Summary collapse

Instance Method Details

#extract_options!Object



9
10
11
12
13
14
15
# File 'lib/monkey_patches.rb', line 9

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