Skip to content

Instantly share code, notes, and snippets.

@soulcutter
Forked from Drewch/categories.rb
Created November 14, 2012 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulcutter/4070615 to your computer and use it in GitHub Desktop.
Save soulcutter/4070615 to your computer and use it in GitHub Desktop.
categories
module Categories
ALL = [
:BUSINESS,
:CALL,
:CONTACT,
:KNOWLEDGE,
:ENTERTAINMENT,
:EMAIL,
:HELP,
:TRAVEL,
:MUSIC,
:CALENDAR,
:WEATHER,
:REMINDER,
:ALARM,
:TIMER,
:STOPWATCH,
:NAVIGATION,
:TRANSIT,
:SEARCH,
:TEXT,
:SOCIAL,
:SPORTS,
:APPLICATION
].freeze
def self.valid?(arg)
ALL.include? arg
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment