On 07/10/11 09:56, itankgo itankgo wrote:
> Can't understand:
>
> # coding: cp1251
>
> x = puts 'bbb'
> puts x
>
> out needs to be:
>
> =>  bbb
> =>  nil
>
> But nil is not returned(bbb displayed),only empty line instead of nil is
> on screen.
>
> ruby v.1.9.2-p180
>
Try

x = puts 'bbb'

puts x.inspect



Sam