Problem
Factor
{1=>2}
must process for Hash object.
But {1=>2}
is processed for a block.
It is Ruby's spec... (nurse said "It is spec..?" at IRC ( #ruby:*.jp in ircnet. )
Solution
p({1=>2})
p 1=>2
h = {1=>2}
p h
:-)
No comments:
Post a Comment