Class: Array

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

Overview

Monkey patches

Instance Method Summary collapse

Instance Method Details

#extract_options!Object



4
5
6
# File 'lib/ext/array_ext.rb', line 4

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