What is the difference between #== and #eql??
Answer / Naman Garg
"#== checks for object equality and #eql? checks for value equality, but #eql? ignores nil values. This means that #eql? will consider nil to be equal to any other object, whereas #== will not."
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the three levels of access control for ruby methods?
How is object methods defined in ruby?
What are freezing string in Ruby?
difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?
What is the difference between ruby 1.9 and ruby 2.0?
Explain about the defined operator in ruby?
Explain do while loop in ruby.
What is rvm?
Does hash use “ #==” or “#eql?” To compare hash keys?
Which ruby interpreter option enables debugging?
What is yield in ruby?
Is ruby a strongly typed or a weakly typed language?