On Sat, Mar 19, 2011 at 4:16 PM, Jen <jen.bottom / gmail.com> wrote:

> I confess I don't know a lot of the technical stuff about class Fixnum, a=
s
> I've not really needed to until now.

Time to learn :-)

> Currently I am getting the value of 'pop' from the user with the followin=
g
> code:
>
> =A0puts "please enter a population size"
> pop =3D gets.chomp

$ irb
>> foo =3D "1"
=3D> "1"
>> foo.class.name
=3D> "String"
>> bar =3D 1
=3D> 1
>> bar.class.name
=3D> "Fixnum"
>> bar.times { puts "cool" }
cool
=3D> 1
>> foo.times { puts "cool" }
NoMethodError: undefined method `times' for "1":String
	from (irb):6
>>

--=20
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
twitter: @hassan