==

ary == other_ary â bool
Instance Public methods

Equality â Two arrays are equal if they contain the same number of elements and if each element is equal to (according to Object#==) the corresponding element in other_ary.

[ "a", "c" ]    == [ "a", "c", 7 ]     #=> false
[ "a", "c", 7 ] == [ "a", "c", 7 ]     #=> true
[ "a", "c", 7 ] == [ "a", "d", "f" ]   #=> false
doc_ruby_on_rails
2015-03-30 15:07:12
Comments
Leave a Comment

Please login to continue.