Hi,
In message "[ruby-talk:5411] Re: Object.foo, setters and so on"
on 00/10/11, Shugo Maeda <shugo / ruby-lang.org> writes:
|> Yes. But setter should always be public. I'll fix this.
|
|Do you mean that I'll be able to call private setters like this?
|
|bar = 1
No. I meant top-level setter like
def foo=(v)
...
end
self.foo=5
would not raise an error. Making
foo=5
to call `foo=' method is impossible I think.
matz.