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 Booleans Build a Simple Todo List Program Writing Classes

Class

Challenge Task 1 of 2

Create a class called TodoList. It is not necessary to define an initialize method yet.

todo_list.rb

3 Answers

Should be very straightforward--you're creating an empty class with no methods or variables in it, so all you need to do is:

class TodoList
end

Sometimes if you include too much code you get a "Bummer!" but for this challenge this is all you need.

Caleb Kleveter
Caleb Kleveter
Treehouse Moderator 37,862 Points

Heather Stone , I thought I might let you know I changed your comment to an answer. This allows you to be up-voted, and awarded with best answer!

Samuel Cyrus
Samuel Cyrus
6,567 Points

it still gives me an error that class not defined

Nicholas Evans
Nicholas Evans
7,911 Points

Make sure that the "c" is not capitalized! I wasted about 10 minutes trying to figure out what I did wrong