Class: Array

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

Instance Method Summary collapse

Instance Method Details

#extract_optionsObject



6
7
8
# File 'lib/cascading/ext/array.rb', line 6

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

#extract_options!Object



2
3
4
# File 'lib/cascading/ext/array.rb', line 2

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