Sha256: 532521f65d29d59f642e4a56224c764003eb8a8414d83828fdebdb1ed97e6ff4

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 Bytes

Contents

require "factory_bot/declaration/dynamic"
require "factory_bot/declaration/association"
require "factory_bot/declaration/implicit"

module FactoryBot
  # @api private
  class Declaration
    attr_reader :name

    def initialize(name, ignored = false)
      @name    = name
      @ignored = ignored
    end

    def to_attributes
      build
    end

    protected

    attr_reader :ignored
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
factory_bot-5.2.0 lib/factory_bot/declaration.rb
factory_bot-5.1.2 lib/factory_bot/declaration.rb
factory_bot-5.1.1 lib/factory_bot/declaration.rb
factory_bot-5.1.0 lib/factory_bot/declaration.rb
factory_bot-5.0.2 lib/factory_bot/declaration.rb
factory_bot-5.0.1 lib/factory_bot/declaration.rb
factory_bot-5.0.0 lib/factory_bot/declaration.rb
factory_bot-5.0.0.rc2 lib/factory_bot/declaration.rb
factory_bot-5.0.0.rc1 lib/factory_bot/declaration.rb