Method: Cfruby::Cfp_MapOptions#pop_options
- Defined in:
- lib/libcfenjin/cfp_mapoptions.rb
#pop_options(opts, *named) ⇒ Object
Remove options from a list and return them
213 214 215 216 217 218 219 220 |
# File 'lib/libcfenjin/cfp_mapoptions.rb', line 213 def opts,*named ret = [] named.each do | n | ret.push opts[n] opts.delete(n) end ret end |