Method: ALib::Util#optfilter
- Defined in:
- lib/alib-0.5.1/util.rb
#optfilter(*list) ⇒ Object
pull out options from arglist
774 775 776 777 778 779 |
# File 'lib/alib-0.5.1/util.rb', line 774 def optfilter(*list) #--{{{ args, opts = [ list ].flatten.partition{|item| not Hash === item} [args, hashify(*opts)] #--}}} end |