4
# Copyright (c) 1999-2001 Minero Aoki <aamine@loveruby.net>
6
# This program is free software.
7
# You can distribute/modify this program under the terms of
8
# the GNU Lesser General Public License version 2 or later.
4
# Copyright (c) 1999-2003 Minero Aoki <aamine@loveruby.net>
6
# This program is free software.
7
# You can distribute/modify this program under the terms of
8
# the GNU LGPL, Lesser General Public License version 2.
9
# For details of the GNU LGPL, see the file "COPYING".
37
37
def []=( key, val )
38
@set[ key.ident ] = val
44
44
def update( other )
45
s = @set; o = other.set
47
o.each_index {|i| if t = o[i] then s[i] = t end }
53
a.each {|i| s[ i.ident ] = i }
57
a.each {|i| s[i.ident] = i }
58
@set[ key.ident ] = nil
63
@set.compact.each( &block )
67
@set.compact.each(&block)