Skip to content

Instantly share code, notes, and snippets.

@Drewch
Created November 14, 2012 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Drewch/4070589 to your computer and use it in GitHub Desktop.
Save Drewch/4070589 to your computer and use it in GitHub Desktop.
categories
class Categories
@categories = {}
VALID_CATEGORIES = [
:BUSINESS,
:CALL,
:CONTACT,
:KNOWLEDGE,
:ENTERTAINMENT,
:EMAIL,
:HELP,
:TRAVEL,
:MUSIC,
:CALENDAR,
:WEATHER,
:REMINDER,
:ALARM,
:TIMER,
:STOPWATCH,
:NAVIGATION,
:TRANSIT,
:SEARCH,
:TEXT,
:SOCIAL,
:SPORTS,
:APPLICATION
].freeze
VALID_CATEGORIES.each {|category| @categories[category] = category.to_s }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment