Mega Code Archive
Categories
/
Ruby
/
Language Basics
If a method name ends with a question mark (), as in eql, then the method returns a Boolean
x = 1.0 y = 1.0 x.eql? y # => true