From: Justin Collins Date: 2010-01-10T12:02:23+09:00 Subject: Re: Confusing docs . . . how do I use gcd2? Justin Collins wrote: > Matt wrote: >> On Jan 9, 8:32 pm, Matt wrote: >> >>> The standard library docs don't make sense to me a lot of the time. >>> How do I use the gcd2 method in class Integer (or is it in file >>> mathn.rb . . . no idea)? >>> >> >> Here's a link to what I'm looking at: >> http://www.ruby-doc.org/stdlib/libdoc/mathn/rdoc/classes/Integer.html#M000926 >> >> >> > > Both, sort of. > > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] > > irb(main):001:0> require 'mathn' > => true > irb(main):002:0> 12.gcd(4) > => 4 > > -Justin > Sorry, that should be gcd2. -Justin