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
classiccms-0.5.14 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.13 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.12 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.11 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
challah-rolls-0.1.0 vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
challah-rolls-0.1.0 vendor/bundle/gems/factory_girl-4.0.0/lib/factory_girl/declaration/dynamic.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
challah-0.8.0.pre vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
challah-0.7.1 vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.10 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.9 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
challah-0.7.0 vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
challah-0.7.0.pre2 vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.8 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.7 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.6 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
factory_girl-4.0.0 lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.5 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
challah-0.7.0.pre vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
factory_girl-4.0.0.rc1 lib/factory_girl/declaration/dynamic.rb