# File lib/arrayfields.rb, line 420 420: def [](*pairs) 421: pairs.flatten! 422: raise ArgumentError, "argument must be key/val pairs" unless 423: (pairs.size % 2 == 0 and pairs.size >= 2) 424: keys, values = [], [] 425: while((k = pairs.shift) and (v = pairs.shift)) 426: keys << k and values << v 427: end 428: new keys, values 429: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.