You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just an oversight. We try and be compatible as we can but some times things get missed. In this case, MRI is being inconsistent but I sort of remember this change (and I am surprised we did not impl it). Consider a version of a:
Boom private method. For the sake of += it reasons you are using self so it has access to call both b and b=. I am ok with this but then why does my self.b fail? In any case, we will fix it...
Another thing which bugs me about this behavior and I am only documenting this for fun...It is great this is static analysis feature of the language because:
defao=selfo.b += 1end
Will not work. It still bugs me because we are calling be against self. If static form of self is ok then why not dynamic one. Perhaps the obvious answer is it would penalize all callsites since you would need to check against self receiver per call...