From: "David A. Black" Date: 2009-09-13T23:37:08+09:00 Subject: Re: All the core function are buit-in? Hi -- On Sun, 13 Sep 2009, Through Pass wrote: > Yeh, I do have noticed that mapping, but I searched all the source code > directory, did not find the ruby method definition ... > > eg. for the > rb_define_method(rb_mEnumerable, "collect", enum_collect, 0); > but no source code file included string "enum_collect", only the static > lib included ... > > I am not sure I have the source code tree, but I really downloaded all > the ruby src tree by: $ svn co > http://svn.ruby-lang.org/repos/ruby/trunk/ ruby > > Any help? $ grep -B1 enum_collect *.c enum.c-static VALUE enum.c:enum_collect(obj) It should be there somewhere. David -- David A. Black, Director Ruby Power and Light, LLC (http://www.rubypal.com) Ruby/Rails training, consulting, mentoring, code review Book: The Well-Grounded Rubyist (http://www.manning.com/black2)