Sha256: 0aa1c6fdc53e0b27b6e7afedbad97c7c1344f7a7d90fea3f7a48f11987fdf2dc
Contents?: true
Size: 335 Bytes
Versions: 8
Compression:
Stored size: 335 Bytes
Contents
$:.unshift File.dirname(__FILE__) require 'renum/enumerated_value_type_factory' module Renum def enum type_name, values = :defined_in_block, &block nest = self.is_a?(Module) ? self : Object EnumeratedValueTypeFactory.create(nest, type_name, values, &block) end end extend Renum Module.module_eval do include Renum end
Version data entries
8 entries across 8 versions & 4 rubygems