Create a gist now
Instantly share code, notes, and snippets.
HTTPS clone URL
Subversion checkout URL
How to store objects with multiple variables.
|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 = Time.now|
|#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.|