Explain the role of modules and mixins in ruby?
Answer / Swati Chandra
The defined? operator in Ruby checks if a method, variable, or class exists. If it does, it returns the string 'method', 'variable', or 'class'. If not, it returns nil.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is mvc and why do we use it?
Is ruby a statically typed or a dynamically typed language?
What are Ruby iterators?
what is the difference extend and include?
How ruby looks up a method to invoke?
Explain about interpolation?
what the difference is between false and nil in Ruby?
Explain next statement in ruby.
Explain the garbage collection feature of ruby?
In how many ways items can be added in an array in Ruby?
Explain about environment variables present in ruby?
Tell me how would you freeze an object in ruby? Can you provide a simple example?