Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

How to store objects with multiple variables.

View gist:3201869
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class Todo
attr_accessor :item, :done, :time_created
def initialize item_name
#what we need for a new item on the todo list.
#when the item was created.(optional)
@time_created =
#the string that is displayed that's identified.
@item = item_name
#whether it's done or not
@done = false
end #of initialize method.
end # of todo class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.