Quantcast
Channel: In Ruby what does the "receiver" refer to? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Cameron Pope for In Ruby what does the "receiver" refer to?

In Ruby (and other languages that take inspiration from SmallTalk) objects are thought of as sending and receiving 'messages'.In Ruby, Object, the base class of everything, has a send method:...

View Article



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

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...

View Article

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

the object before the .think of calling a method x.y as saying "send instruction y to object x".it's the smalltalk way of thinking, it will serve you well as you get to some of Ruby's more advanced...

View Article

In Ruby what does the "receiver" refer to?

I'm reading a document that talks about a method having a receiver. What's a receiver?

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images