new (DataMapper::Model)

    # File lib/dm-core/model.rb, line 18
        def self.new(storage_name = nil, &block)
          model = Class.new

          model.class_eval "include DataMapper::Resource\n\ndef self.name\nto_s\nend\n", __FILE__, __LINE__ + 1

          if storage_name
            warn "Passing in +storage_name+ to #{name}.new is deprecated (#{caller[0]})"
            model.class_eval "def self.default_storage_name\n\#{Extlib::Inflection.classify(storage_name).inspect}.freeze\nend\n", __FILE__, __LINE__ + 1
          end

          model.instance_eval(&block) if block
          model
        end