Hi, At Wed, 11 Oct 2000 17:42:21 +0900, matz / zetabits.com (Yukihiro Matsumoto) wrote: > |> def foo=(v) > |> ... > |> end > |> self.foo=5 > |> > |> would not raise an error. Making > | > |Is this Object#foo= public method? > > It will be in 1.6.2 (or the latest CVS). $ ruby-cvs -S irb irb(main):001:0> VERSION "1.6.2" irb(main):002:0> def foo=(x) irb(main):003:1> p x irb(main):004:1> end nil irb(main):005:0> self.foo = 1 1 nil irb(main):006:0> "bar".foo = 2 2 nil irb(main):008:0> Object.public_methods.include?("foo=") true I think it's not consistent with other top-level methods. It's enough to print a warning message on the definition, isn't it? Shugo