From: "D. Deryl Downey" Date: 2013-02-28T00:31:33+09:00 Subject: Re: Why `10` not returned without the `return` from the block ? I seriously believe now that you are trolling this list. I, for one, am done. You have been pointed over and over to documentation, to tutorials, to online FREE courses to teach you Ruby, both basic and intermediate levels. You take NO advantage of them. I will block all email from you, from the mailing list that contains your email address and username. I'd rather spend my time helping someone who really wants to learn, not half ass their learning. I hope one day you actually learn Ruby. Right now, you're not even close. On 2/27/13 10:12 AM, "Love U Ruby" wrote: >But why mean to say when the below code works: > >class Simple >def foo >2 + 2 >end >end >#=> nil >simple = Simple.new >#=> # >simple.foo >#=> 4 > > >Why not the below: > >class Fixnum >def to_s >self + 5 >end >end >#=> nil >puts 10 ># >#=> nil > >Hope my confusion is clear. > >-- >Posted via http://www.ruby-forum.com/. >