On 2002.05.12, Sean Chittenden <sean / chittenden.org> wrote: > What's a better API: > > Suppose p['name'] has two values: > > p['name'] >> val1 # on second call, p['name'] will return a new value > p['name'] >> val2 # in a round robin fashion > > or > > p['name'] >> ['val1','val2'] # if multiple vals per key > p['name'] >> 'val1' # if only one val per key My two cents? p['name'] always returns val1. p['name'].to_a returns the array of values. -- Dossy -- Dossy Shiobara mail: dossy / panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)