@bascule what's wrong with that?
@garybernhardt >> class X; def a; self.b = 42; end; private; def b=(x); end; end
=> nil
>> X.new.a
=> 42 #lol
-
-
-
@oscardelben private has different rules on whether or not "self" is permitted as a receiver for setters vs all other methods
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.