Sha256: 065fb8b9a274a11cce5a579c551cda9696a0387c0ae35fd3c94c729074999819

Contents?: true

Size: 489 Bytes

Versions: 6

Compression:

Stored size: 489 Bytes

Contents

module FactoryBot
  class Declaration
    # @api private
    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

6 entries across 6 versions & 1 rubygems

Version Path
factory_bot-4.11.1 lib/factory_bot/declaration/static.rb
factory_bot-4.11.0 lib/factory_bot/declaration/static.rb
factory_bot-4.10.0 lib/factory_bot/declaration/static.rb
factory_bot-4.8.2 lib/factory_bot/declaration/static.rb
factory_bot-1.0.1.alpha lib/factory_bot/declaration/static.rb
factory_bot-1.0.0.alpha lib/factory_bot/declaration/static.rb