From: Florian Gilcher Date: 2012-03-01T16:12:28+09:00 Subject: Re: Rubymoticons > > Adam Prescott wrote: >> Maybe I'm missing something, but: >> >> >> $ ruby -ve 'puts :- >> .class' >> ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux] >> Symbol > > So Ruby and IRB are consistent in this respect. But I would still > expect Ruby *not* to wait for the next line when it encounters a > symbol like :- at the end of a line. > This is not a bug. Ruby 1.9 can chain methods like this: "foo \n" .chomp .reverse So, it works with any expression, also with symbols. Regards, Florian