Skip to content

Instantly share code, notes, and snippets.

@jasonblanchard
Created November 15, 2014 18:23
Show Gist options
  • Select an option

  • Save jasonblanchard/b47923769906e13e2918 to your computer and use it in GitHub Desktop.

Select an option

Save jasonblanchard/b47923769906e13e2918 to your computer and use it in GitHub Desktop.
todos = {"Check out Ruby docs on String" => "complete", "Check out Ruby docs on Fixnum" => "complete", "Check out Ruby docs on Array" => "incomplete", "Check out Ruby docs on Hash" => "incomplete"}
todos.each do |todo, status|
puts "#{todo}: #{status}"
end
puts "I have a total of #{todos.count} todos."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment