Sha256: 078ae7f182933785185a3712fca1d17a8c1a5e748ba42780ede5243539b5e43b

Contents?: true

Size: 398 Bytes

Versions: 18

Compression:

Stored size: 398 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

18 entries across 17 versions & 3 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/factory_bot-6.5.0/lib/factory_bot/declaration.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/factory_bot-6.5.0/lib/factory_bot/declaration.rb
factory_bot-6.5.0 lib/factory_bot/declaration.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/factory_bot-6.4.6/lib/factory_bot/declaration.rb
factory_bot-6.4.6 lib/factory_bot/declaration.rb
factory_bot-6.4.5 lib/factory_bot/declaration.rb
factory_bot-6.4.4 lib/factory_bot/declaration.rb
factory_bot-6.4.3 lib/factory_bot/declaration.rb
factory_bot-6.4.2 lib/factory_bot/declaration.rb
factory_bot-6.4.1 lib/factory_bot/declaration.rb
factory_bot-6.4.0 lib/factory_bot/declaration.rb
factory_bot-6.3.0 lib/factory_bot/declaration.rb
factory_bot-6.2.1 lib/factory_bot/declaration.rb
factory_bot-6.2.0 lib/factory_bot/declaration.rb
factory_bot-6.1.0 lib/factory_bot/declaration.rb
factory_bot-6.0.2 lib/factory_bot/declaration.rb
factory_bot-6.0.1 lib/factory_bot/declaration.rb
factory_bot-6.0.0 lib/factory_bot/declaration.rb