From: "Iñaki Baz Castillo" Date: 2010-01-19T06:48:20+09:00 Subject: Re: Integer class error El Lunes, 18 de Enero de 2010, Atheeq Pasha escribió: > Hello, > > how to use Integer class in ruby?? When I enter this from irb console, > this error is thrown out.. > > >>Integer.new(3) > > NoMethodError: undefined method `new' for Integer:Class > from (irb):182 Integer doesn't allow "new" method as Integer is an especial class (Integer 1 has a fixed ibject_id, as 2, 3 and so on). To create a Fixnum 3 just do: irb> 3 -- Iñaki Baz Castillo