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