| Start |
|---|
| Implementing "with" using instance evaluation Many languages feature a
The |
| send() method
Here is the more descriptive exampleNote: |
| Defining methods dynamically With Ruby you can modify the structure of the program in execution time. One way to do it, is by defining methods dynamically using the method Let's say that we want to be able to test if a number is greater than other number with the syntax One important thing to remember when using Forgetting to do so leads to a inconsistent situation, when you can successfully call |
| Defining methods on instances In ruby you can add methods to existing instances of any class. This allows you to add behavior to and instance of a class without changing the behavior of the rest of the instances of that class. |
Read Article
https://develop.horje.com/learn/1434/reference