1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* array.c (rb_ary_equal): a == b is true when b is non T_ARRAY

object, if b has "to_ary" and b == a.

* hash.c (rb_hash_equal): a == b is true when b is non T_HASH
  object, if b has "to_hash" and b == a.

* string.c (rb_str_equal): a == b is true when b is non T_STRING
  object, if b has "to_str" and b == a.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-02-04 07:27:43 +00:00
parent c46774cdb3
commit 1d5e19f624
6 changed files with 38 additions and 7 deletions

View file

@ -29,7 +29,7 @@ list.rb stupid object sample
list2.rb stupid object sample
list3.rb stupid object sample
mine.rb simple mine sweeper
mkproto.rb extract protptype from C
mkproto.rb extract prototype from C
mpart.rb split file int multi part
mrshtest.rb test marshal
observ.rb observer design pattern sample