Skip to content

Instantly share code, notes, and snippets.

@chadjemmett
Created July 13, 2012 18:08
Show Gist options
  • Save chadjemmett/3106378 to your computer and use it in GitHub Desktop.
Save chadjemmett/3106378 to your computer and use it in GitHub Desktop.
Confused about how to organize variables.
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