Answer Posted / 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 |
Post New Answer View All Answers