i have a basic ruby class:
class LogEntry
end
and what i would like to do is be able to define a hash with a few values like so:
EntryType = { :error => 0, :warning => 1, :info => 2 }
so that i can access the values like this (or something similar):
LogEntry.EntryType[:error]
is this even possible in Ruby? am i going about this the right way?