Sha256: 42d8ccfaacb612fbd88714b21c31c417b6ebb1fc7f377cda7ed6c8d6c094b1ef

Contents?: true

Size: 498 Bytes

Versions: 113

Compression:

Stored size: 498 Bytes

Contents

module FactoryGirl
  class Declaration
    # @api private
    class Dynamic < Declaration
      def initialize(name, ignored = false, block = nil)
        super(name, ignored)
        @block = block
      end

      def ==(other)
        name == other.name &&
          ignored == other.ignored &&
          block == other.block
      end

      protected
      attr_reader :block

      private

      def build
        [Attribute::Dynamic.new(name, @ignored, @block)]
      end
    end
  end
end

Version data entries

113 entries across 100 versions & 12 rubygems

Version Path
ffactory_girl-4.8.2 lib/factory_girl/declaration/dynamic.rb
factory_girl-4.9.0 lib/factory_girl/declaration/dynamic.rb
ffactory_girl-4.8.1 lib/factory_girl/declaration/dynamic.rb
factory_girl-4.8.1 lib/factory_girl/declaration/dynamic.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/factory_girl-4.8.0/lib/factory_girl/declaration/dynamic.rb
factory_girl-4.8.0 lib/factory_girl/declaration/dynamic.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/declaration/dynamic.rb
factory_girl-4.7.0 lib/factory_girl/declaration/dynamic.rb
opal-factory_girl-4.5.0.3 factory_girl/lib/factory_girl/declaration/dynamic.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/factory_girl-4.5.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/declaration/dynamic.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/declaration/dynamic.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/declaration/dynamic.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/declaration/dynamic.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/declaration/dynamic.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/factory_girl-4.4.0/lib/factory_girl/declaration/dynamic.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/declaration/dynamic.rb