From: Marc-Andre Lafortune Date: 2009-10-17T13:15:26+09:00 Subject: [ruby-core:26139] [Bug #2224] lib/delegate: operator delegation Bug #2224: lib/delegate: operator delegation http://redmine.ruby-lang.org/issues/show/2224 Author: Marc-Andre Lafortune Status: Open, Priority: Normal Category: lib ruby -v: ruby 1.9.2dev (2009-10-17 trunk 25379) [x86_64-darwin10.0.0] The operators ==, =~, !~ are forwarded by Delegate. I presume the operators != and ~, new in 1.9, have simply been forgotten? As for eql? and hash, this is probably intentional. I am still curious as to why, since this can yield surprising results (at least to me): a = "foo" a1 = SimpleDelegator.new(a) a2 = a1.dup h = {} h[a] = :bar h[a1] = :bar h[a2] = :bar h # ==> {"foo"=>:bar, "foo"=>:bar, "foo"=>:bar} ---------------------------------------- http://redmine.ruby-lang.org