From: matt@... (matt neuburg) Date: 2009-02-19T05:14:53+09:00 Subject: Re: Kernel#blah is documented as Object#blah. Why? Rob Biedenharn wrote: > On Feb 18, 2009, at 11:34 AM, Alex Fortuna wrote: > > Hi guys. > > > > There are certain common methods that originate from module Kernel, > > but > > they're documented in class Object. > > > > E.g. > > > >> o = Object.new > >> => # > >> o.method :send > >> => # > > > > method's #inspect clearly shows that #send originates from Kernel, > > but: > > > > $ ri Kernel#send > > Nothing known about Kernel#send > > $ ri Object#send > > (ri page on #send) > > > > Why this kind of confusion? Why not making methods like #send, > > #kind_of? > > and a bunch of others *ACTUALLY* belong to Object, thus making > > method.inspect() more accurate in terms of pointing to the proper > > place > > in the documentation? > > > Or use a different program for searching the ri docs, like fastri Fastri has been broken for months OMM. $ fri Object (druby://127.0.0.1:50026) /usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer': invalid subclass (TypeError) from (druby://127.0.0.1:50026) /usr/local/lib/ruby/1.8/yaml.rb:133:in `node_import' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/1.8/yaml.rb:133:in `load' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/1.8/yaml.rb:133:in `load' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:72:in `deserialize' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:354:in `get_class' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:354:in `open' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:354:in `get_class' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:352:in `each' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:352:in `get_class' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_service.rb:209:in `info' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_service.rb:422:in `capture_stdout' from (druby://127.0.0.1:50026) /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_service.rb:208:in `info' from /usr/local/bin/fri:342 from /usr/local/bin/fri:337:in `each' from /usr/local/bin/fri:337 m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com