==

cmp == object รข true or false
Instance Public methods

Returns true if cmp equals object numerically.

Complex(2, 3)  == Complex(2, 3)   #=> true
Complex(5)     == 5               #=> true
Complex(0)     == 0.0             #=> true
Complex('1/3') == 0.33            #=> false
Complex('1/2') == '1/2'           #=> false
doc_ruby_on_rails
2015-04-01 13:24:07
Comments
Leave a Comment

Please login to continue.