From: Bira Date: 2006-05-13T07:56:55+09:00 Subject: Re: conversion issues On 5/12/06, corey konrad <0011@hush.com> wrote: > i just have a question i am not trying to be a smart ass either but > > one thing i find strange is that the puts means put string, its a string > method, now when i use the length method to get the amount of characters > in a word it works fine....yet to put the length i get an error: cant > convert from fixnum to string problem....i have to convert the integer > returned to string even though i am using a string method? Shoulndt > string conversion be implied in the puts method since thats what people > are going to use it for or would that cause problems somehow? I tried the following in IRB: string = "fnord" puts string.length It printed out "5" just fine. Is that the problem you were referring to? (I'm using Ruby 1.8.4 on Linux). -- Bira http://compexplicita.blogspot.com http://sinfoniaferida.blogspot.com