Is the keyword self in ruby is some thing like this keyword in java. If yes, could any one help me to grab the concept of it. Is it calling the current object? What's the point of calling an object?
Asked
Active
Viewed 37 times
0
-
the java equivalent is "this" as it is in many other languages – ddavison Sep 14 '16 at 18:22
-
`self` refers to the current context which is always an object but might be a class or instance depending on where the code is defined. – tadman Sep 14 '16 at 18:52