Skip to content

Commit

Permalink
faq/2/index.md: fix incorrect wording (#3212)
Browse files Browse the repository at this point in the history
A def statement defines a function or method. It's not correct to say a def statement "is a function" or "is a method call".
  • Loading branch information
jcsahnwaldt authored Mar 4, 2025
1 parent 25f8653 commit 0e79cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/documentation/faq/2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ argument automagically becomes a reference to the receiver.
Ruby is a pure OO language that can masquerade as a procedural one. It has no
functions, only method calls. In a Ruby method the receiver, also called
`self`, is a hidden argument like `this` in C++. A `def` statement outside of
a class definition, which is a function in Python, is actually a method call
a class definition, which defines a function in Python, actually defines a method
in Ruby. These ersatz functions become private methods of class Object, the
root of the Ruby class hierarchy. Procedural programming is neatly solved from
the other direction---everything is an object. If the user doesn't grok
Expand Down

0 comments on commit 0e79cac

Please sign in to comment.