Ruby Developer Question: Download Questions PDF
What is the difference extend and include?
![Ruby Developer Interview Answer Ruby Developer Interview Question](https://globalguideline.com/public/images/interview/22.png)
Answer:
The “include” makes the module’s methods available to the instance of a class, while “extend” makes these methods available to the class itself.
Download Ruby Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me the role of modules and mixins in Ruby? | What is the syntax for Ruby collect Iterator? |