Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Ruby Class Method

Hey guys,

i was watching the Ruby Foundations Deep Dive and actually im a little bit struggeling with the Class Methode. I didnt understand the value of the class methods and the difference between those and usual methods. Can someone explain that to me in more detail?

cheers, Dominic

1 Answer

Jah Chaisang
Jah Chaisang
7,157 Points

I was confused too. So I read this post ... http://www.railstips.org/blog/archives/2009/05/11/class-and-instance-methods-in-ruby/

Since the author said it very well, I am not going to repeat it.

I went through Ruby foundation myself a while ago. I needed a lot of outside help to ace Ruby. I recommend rubymonk.com. If you go through all the primers' lessons, everything will become clear.