From 60bdf417b56743c916f5a510b21d86e66ae33e7d Mon Sep 17 00:00:00 2001 From: Abhishek Shere <41297334+Abhideveloper28@users.noreply.github.com> Date: Tue, 24 May 2022 20:05:18 +0530 Subject: [PATCH] Fix /en/documentation/faq/2/index.md This statement looks wrong to me, It said a `A `def` statement outside of a class definition become private methods of class Object` that is not correct. I can call method (that define outside any class) to object of class Object. --- en/documentation/faq/2/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/documentation/faq/2/index.md b/en/documentation/faq/2/index.md index c1efec2c51..09d1f750db 100644 --- a/en/documentation/faq/2/index.md +++ b/en/documentation/faq/2/index.md @@ -57,7 +57,7 @@ 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 -in Ruby. These ersatz functions become private methods of class Object, the +in Ruby. These ersatz functions become public 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 objects yet, they can just pretend that `def` is a function definition and