Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/spreedly/common/fields.rb

Instance Method Summary collapse

Instance Method Details

#extract_options!Object



84
85
86
87
88
89
90
# File 'lib/spreedly/common/fields.rb', line 84

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