module Enum::Helpers::EnumGenerator

Public Instance Methods

enum(name, hash)
Alias for: yinum
yinum(name, hash) click to toggle source
# File lib/enum/helpers/enum_generator.rb, line 4
def yinum(name, hash)
  const_set name, Enum.new(name, self, hash)
end
Also aliased as: enum