From: Derek Lewis Date: 2003-12-18T03:04:15+09:00 Subject: Re: Extracting multiple lines from a file On Wed, 17 Dec 2003, Dave Thomas wrote: > > Do you have the latest 'ri' (from sf/net/projects/rdoc). It's got the > PickAxe content, updated for 1.8. Unless I've done something wrong, it looks like Proc.arity still has the old behavior. I downloaded ri-1.8b.tgz. (Notice I'm also getting some strange error from ri.rb) lewisd@derlewi:~$ ri -v /usr/local/lib/site_ruby/ri/ri.rb:404: warning: don't put space before argument parentheses ri 1.8a lewisd@derlewi:~$ ri Proc.arity Proc.new {|a|}.arity #=> -1 lewisd@derlewi:~$ irb irb(main):001:0> require 'rbconfig' => true irb(main):002:0> include Config => Object irb(main):003:0> CONFIG['ruby_version'] => "1.8" irb(main):004:0> Proc.new {|a|}.arity => 1 irb(main):005:0> ^D lewisd@derlewi:~$ ruby --version ruby 1.8.1 (2003-11-11) [i386-linux] lewisd@derlewi:~$ Derek Lewis =================================================================== Java Web-Application Developer Email : email@lewisd.com Cellular : 604.312.2846 Website : http://www.lewisd.com "If you've got a 5000-line JSP page that has "all in one" support for three input forms and four follow-up screens, all controlled by "if" statements in scriptlets, well ... please don't show it to me :-). Its almost dinner time, and I don't want to lose my appetite :-)." - Craig R. McClanahan