class T::Enum
def self.values
def self.values if @values.nil? raise "Attempting to access values of #{self.class} before it has been initialized." \ " Enums are not initialized until the 'enums do' block they are defined in has finished running." end @values end