The question I'm going to ask is probably the most noobish question that you will have heard for a long time but everybody has to start somewhere..
What I don't really understand is the following:
How come methods that finish with an equal sign can be called with a space before the equal. For instance look at the very bad example below:
old_age = 23 def age=(new_age) old_age = new_age end p age = 12
The reason why I ask the question is because often times there are two methods with the same name and one of which ends with an equal sign, and for a beginner it's hard to recognize which is being used...

New Topic/Question
Reply




MultiQuote





|