Sha256: 731549295acc3ea61088fb224795914883c71a36b9f2de49aa022e9cfb945320

Contents?: true

Size: 479 Bytes

Versions: 151

Compression:

Stored size: 479 Bytes

Contents

module FactoryGirl
  class Declaration
    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

151 entries across 96 versions & 7 rubygems

Version Path
classiccms-0.5.2 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.1 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.1 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.0 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.5.0 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.4.2 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.4.2 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.4.1 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.4.1 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.4.0 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.4.0 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.3.9 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.3.9 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
challah-0.6.2 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/declaration/dynamic.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb
classiccms-0.3.8 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/declaration/dynamic.rb