Sha256: 3d150c53f32a76f3730eea3839270d125d0f0bae578dc3585019f4a6ab094d68

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

require 'factory_bot/declaration/static'
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

6 entries across 6 versions & 1 rubygems

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