From: Todd Benson Date: 2008-11-15T11:27:04+09:00 Subject: Re: Unit Conversion (#183) On Fri, Nov 14, 2008 at 6:12 PM, Ryan Davis wrote: > > On Nov 14, 2008, at 11:20 , Matthew Moss wrote: > >>>> Note to everyone else: using another lib, such as stick, is considered >>>> cheating for this quiz. :D > > so... `units` isn't a library... is this cheating? > >>> def units(n, i, o) `units "#{n} #{i}" #{o}`[/[\d\.]+/].to_f; end > => nil >>> units 50, :mi, :km > => 80.4672 > > :D > > I assume it is... but I also assume it isn't a real contender for the intent > of the quiz in the first place (which is a shame, because this is much > better reuse). Don't forget mass can be converted to energy :) Excellent quiz! Waiting for some good answers! Todd