File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ argument automagically becomes a reference to the receiver.
5656Ruby is a pure OO language that can masquerade as a procedural one. It has no
5757functions, only method calls. In a Ruby method the receiver, also called
5858` self ` , is a hidden argument like ` this ` in C++. A ` def ` statement outside of
59- a class definition, which is a function in Python, is actually a method call
59+ a class definition, which defines a function in Python, actually defines a method
6060in Ruby. These ersatz functions become private methods of class Object, the
6161root of the Ruby class hierarchy. Procedural programming is neatly solved from
6262the other direction---everything is an object. If the user doesn't grok
You can’t perform that action at this time.
0 commit comments