Created
July 13, 2012 18:08
-
-
Save chadjemmett/3106378 to your computer and use it in GitHub Desktop.
Confused about how to organize variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Todo | |
def initialize item | |
#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 | |
#whether it's done or not | |
@done = false | |
end #of initialize method. | |
end #end of todo class. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment