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
mikescs
5,018 Pointssuper & super() in ruby
Can anybody explain super & super() in ruby and what they are good for ?
An example?
1 Answer
Ethan Lowry
Courses Plus Student 7,323 PointsAs in most object-oriented languages, calling super in Ruby within a method named x simply calls the method x on the current class' parent or super class, assuming it exists.
Check out the top answer here for a decent example.