Sha256: f41055f832f23e16c309724738f9178310867511f8e304bb6b8ecf65e8c6ec01

Contents?: true

Size: 463 Bytes

Versions: 110

Compression:

Stored size: 463 Bytes

Contents

require 'observer'

module FactoryGirl
  class Evaluation
    include Observable

    def initialize(attribute_assigner, to_create)
      @attribute_assigner = attribute_assigner
      @to_create = to_create
    end

    delegate :object, :hash, to: :@attribute_assigner

    def create(result_instance)
      @to_create[result_instance]
    end

    def notify(name, result_instance)
      changed
      notify_observers(name, result_instance)
    end
  end
end

Version data entries

110 entries across 97 versions & 11 rubygems

Version Path
factory_girl-4.8.1 lib/factory_girl/evaluation.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/factory_girl-4.8.0/lib/factory_girl/evaluation.rb
factory_girl-4.8.0 lib/factory_girl/evaluation.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/evaluation.rb
factory_girl-4.7.0 lib/factory_girl/evaluation.rb
opal-factory_girl-4.5.0.3 factory_girl/lib/factory_girl/evaluation.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/factory_girl-4.5.0/lib/factory_girl/evaluation.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/evaluation.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/evaluation.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/evaluation.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/evaluation.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/evaluation.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/evaluation.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/evaluation.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/factory_girl-4.4.0/lib/factory_girl/evaluation.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/factory_girl-4.4.0/lib/factory_girl/evaluation.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/evaluation.rb
factory_girl-4.5.0 lib/factory_girl/evaluation.rb
factory_girl-4.4.0 lib/factory_girl/evaluation.rb
factory_girl-4.3.0 lib/factory_girl/evaluation.rb