I am testing posting code :)
class Hash
def except(*arr)
hsh = self.dup
arr.each do |k|
hsh.delete(k)
end
hsh
end
end
Saturday, April 28, 2007
A handy hash method
Posted by RubyPanther at 4/28/2007 04:02:00 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment