From: Love U Ruby Date: 2013-03-12T17:07:31+09:00 Subject: Re: Confusion with empty block printing Humm, Only within the `()` it is understood by IRB that i am feeding it a Hash, otherwise error. >> puts {:a => 4} SyntaxError: (irb):17: syntax error, unexpected tASSOC, expecting '}' puts {:a => 4} ^ from C:/Ruby193/bin/irb:12:in `
' >> puts {:a => 4}.class SyntaxError: (irb):18: syntax error, unexpected tASSOC, expecting '}' puts {:a => 4}.class ^ from C:/Ruby193/bin/irb:12:in `
' ============================ >> puts ({:a => 4}.class) Hash ============================ Strange it is. would not it? -- Posted via http://www.ruby-forum.com/.