Sha256: 60fa3b85db5b7958a18d5b852fd3512153c533bcd416f435fc9cb33f5c12e2b8

Contents?: true

Size: 471 Bytes

Versions: 151

Compression:

Stored size: 471 Bytes

Contents

module FactoryGirl
  class Declaration
    class Static < Declaration
      def initialize(name, value, ignored = false)
        super(name, ignored)
        @value = value
      end

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

      protected
      attr_reader :value

      private

      def build
        [Attribute::Static.new(name, @value, @ignored)]
      end
    end
  end
end

Version data entries

151 entries across 96 versions & 7 rubygems

Version Path
factory_girl-2.5.1 lib/factory_girl/declaration/static.rb
challah-0.3.0 vendor/bundle/gems/factory_girl-2.5.0/lib/factory_girl/declaration/static.rb
challah-0.2.1 vendor/bundle/gems/factory_girl-2.5.0/lib/factory_girl/declaration/static.rb
challah-0.2.0 vendor/bundle/gems/factory_girl-2.5.0/lib/factory_girl/declaration/static.rb
factory_girl-2.5.0 lib/factory_girl/declaration/static.rb
factory_girl-2.4.2 lib/factory_girl/declaration/static.rb
factory_girl-2.4.1 lib/factory_girl/declaration/static.rb
factory_girl-2.4.0 lib/factory_girl/declaration/static.rb
factory_girl-2.3.2 lib/factory_girl/declaration/static.rb
factory_girl-2.3.1 lib/factory_girl/declaration/static.rb
factory_girl-2.3.0 lib/factory_girl/declaration/static.rb