true ;)


dblack / wobblini.net schrieb:
> Hi --
> 
> On Tue, 28 Feb 2006, Gregor Kopp wrote:
> 
>> 1.) if you do a .to_i to num, you dont need to chomp it.
>> 2.) if you make 'num'.to_i you try to transform the string num into 
>> integer. it should be num.to_i, because you want the value of num and 
>> not "num".
>> 3.) #{expression} in string will be replaced with its value in that 
>> string.
>> try
> 
> 
> And of course there's always:
> 
>   puts "What's you're favorite number?"
>   puts "This is better: #{gets.to_i + 1}"
> 
> :-)
> 
> 
> David
>