From: Vincent Foley Date: 2002-04-19T11:20:05+09:00 Subject: Re: Fixnum to_c On Fri, Apr 19, 2002 at 09:16:50AM +0900, Ralph Mason wrote: > I know there must be a more elegant way to conver from a fixnum to a > character than > > class Fixnum > def to_c() > x = " " > x[0] = self > x > end > end > > Can someone tell me what it is? > > Thanks > Ralph > ---end quoted text--- Why don't you use Integer#chr? irb(main):001:0> 65.chr "A" irb(main):002:0> Isn't it what you want to do? -- Vincent Foley-Bourgon Email: vinfoley@iquebec.com Homepage: http://darkhost.mine.nu:81