Sha256: 0713efad3bece3d2b26786d04fb913ccfc3614d94289acf5902bb033c54e6a5d

Contents?: true

Size: 280 Bytes

Versions: 6

Compression:

Stored size: 280 Bytes

Contents

module FactoryBot
  class Attribute
    # @api private
    class Static < Attribute
      def initialize(name, value, ignored)
        super(name, ignored)
        @value = value
      end

      def to_proc
        value = @value
        -> { value }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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