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
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/factory_girl-4.1.0/lib/factory_girl/declaration/dynamic.rb
challah-rolls-0.2.0 vendor/bundle/gems/factory_girl-3.6.1/lib/factory_girl/declaration/dynamic.rb
challah-rolls-0.2.0 vendor/bundle/gems/factory_girl-4.1.0/lib/factory_girl/declaration/dynamic.rb
challah-0.8.3 vendor/bundle/gems/factory_girl-4.0.0/lib/factory_girl/declaration/dynamic.rb
challah-0.8.3 vendor/bundle/gems/factory_girl-4.1.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.8 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.7 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
factory_girl-3.6.2 lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.6 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.5 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.4 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.3 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.2 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.1 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.6.0 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
challah-0.8.1 vendor/bundle/gems/factory_girl-4.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.17 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.16 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.15 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/declaration/dynamic.rb
factory_girl-4.1.0 lib/factory_girl/declaration/dynamic.rb