Do you know what is the defined operator?
Answer / Hardwari Lal
Yes, in Ruby, the `defined?` method returns one of three strings ('nil', 'undefined method', or 'method') that indicate the definition state of an object or method. For example: `def hello; end; defined?(:hello) # => "method"
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me how would you freeze an object in ruby? Can you provide a simple example?
What are ruby variables.
Difference between nil and false in ruby?
Can you please explain what is the difference between string and symbol?
Explain about the defined operator in ruby?
what is the role of sub-directory app/controllers and app/helpers?
Name some operators used in ruby.
How is an iterator handled in ruby?
What are the case statement in ruby?
What is ruby software and where and when it is usefull.
How does ruby deal with extremely large numbers?
What are the loops in ruby?