Answer Posted / Vikas Srivastava
In Ruby, "include" allows you to incorporate the methods (and constants) defined in a module into your class or module. On the other hand, "extend" lets you add methods to an existing object without modifying its class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers