lib/renum.rb in renum-0.1.0 vs lib/renum.rb in renum-1.0.0

- old
+ new

@@ -1,9 +1,9 @@ $:.unshift File.dirname(__FILE__) require 'renum/enumerated_value_type_factory' module Renum - def enum type_name, values, &block + 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