From: Barca Junior Date: 2008-01-06T00:07:26+09:00 Subject: Re: Fixnums can have instance variables? Cool. > > class Fixnum > attr_accessor :note > end > > 13.note = "a baker's dozen" > 25.note = "5 squared" > > notes = [13, 21, 25].collect { |x| x.note } # ["a baker's dozen", > nil, "5 squared"] > It's really cool. -- Posted via http://www.ruby-forum.com/.