Hi,

I have another question about Ruby:

Why does puts -100.abs return 100? Shouldn't it be that the unary minus 
operator is applied to the result of 100.abs, thus returning -100? It 
does not seem to me that the - operator has precedence over regular methods.

I am guessing that -100 is treated as a single integer literal rather 
than an integer for which a minus operator has to be applied. Am I 
correct? If so, does this not pose a readability problem?

a = 100
puts -a.abs
==> -100

puts -100.abs
==> 100