From: Phrogz Date: 2009-11-15T13:50:49+09:00 Subject: Re: Array.assoc On Nov 14, 9:31 pm, Ralph Shnelvar wrote: > If I want to find the source to the Class Array ... specifically > Array.assoc ... where would I look? Slim2:~ phrogz$ cd /usr/local/src/ruby-1.9.1-p243/ Slim2:ruby-1.9.1-p243 phrogz$ grep -E "define_method.+assoc" *.c array.c: rb_define_method(rb_cArray, "assoc", rb_ary_assoc, 1); array.c: rb_define_method(rb_cArray, "rassoc", rb_ary_rassoc, 1); hash.c: rb_define_method(rb_cHash, "assoc", rb_hash_assoc, 1); hash.c: rb_define_method(rb_cHash, "rassoc", rb_hash_rassoc, 1); So, look for the function named rb_cArray in the array.c file in the ruby source code. (Do you have the source code, or do you need help finding where that is?)