Am 12.03.2013 08:55, schrieb Love U Ruby:
> Please let me know if you have any confusion to understand.

Among the repliers there hasn't been any confusion at all.

You're question had been answered in the very first reply
(and additionally several times in later posts) so please
don't ask the same question five times but instead try to
read the answers more carefully.

To clarify (hopefully) even more: this has _nothing_ to do with IRB.
It's the Ruby _parser_ that needs and follows rules on how to
treat ambiguous expressions (like any parser does).

A different example:  2 + 3 * 4

This is parsed as 2 + (3 * 4) according to the rules for
operator precedence. If you want to enforce a different
interpretation of this expression, you need to make that clear
to the parser by adding some parentheses, e.g.  (2 + 3) * 4

Same for your question: if you want {} to be interpreted as
a hash you need to make that clear to the parser.


-- 
<https://github.com/stomar/>