lib/attribeauty/base.rb in attribeauty-0.1.0 vs lib/attribeauty/base.rb in attribeauty-0.2.0

- old
+ new

@@ -9,10 +9,10 @@ return if @attributes[name] @attributes[name] = type class_eval(<<-CODE, __FILE__, __LINE__ + 1) - def #{name}=(value); @#{name} = Cast.cast(value, #{type.inspect}); end + def #{name}=(value); @#{name} = TypeCaster.run(value, #{type.inspect}); end def #{name};@#{name};end CODE return unless type == :boolean