lib/super_mapper.rb in super_mapper-0.1.0 vs lib/super_mapper.rb in super_mapper-0.2.0

- old
+ new

@@ -1,9 +1,12 @@ # frozen_string_literal: true require 'super_mapper/version' class SuperMapper + def initialize + yield self if block_given? + end ## # Define a new mapping schema from a source class, mapping getters to setters # # @param [Class] source_class the class that will act as the source for this mapping definition