Method: FTest::Util#extract_hash
- Defined in:
- lib/ftest/util.rb
#extract_hash(ary) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/ftest/util.rb', line 17 def extract_hash ary if ary.last.is_a? Hash hsh = ary.pop else hsh = {} end [hsh, ary] end |