From: Marcin Raczkowski Date: 2007-09-19T22:28:36+09:00 Subject: Re: 1.class vs method1.class SpringFlowers AutumnMoon wrote: > so 1.class will give Fixnum... > > but when i define a method > > def foo > puts "ha" > end > > how can i invoke > > foo.class > > as it is taking what foo returns... as then invoke class on that. becouse foo returns what puts returns and it's nil, and nil have NilClass you have to understand that in ruby EVERYTHING returns value (even if it's nil) and everything is object (even nil)