Quantcast
Channel: In Ruby what does the "receiver" refer to? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Adam Wright for In Ruby what does the "receiver" refer to?

$
0
0

In the original Smalltalk terminology, methods on "objects" were instead refered to as messages to objects (i.e. you didn't call a method on object foo, you sent object foo a message). So foo.blah is sending the "blah" message, which the "foo" object is receiving; "foo" is the receiver of "blah".


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>