2017-10-20 15:20:28 -04:00
|
|
|
require 'factory_bot/declaration/static'
|
|
|
|
require 'factory_bot/declaration/dynamic'
|
|
|
|
require 'factory_bot/declaration/association'
|
|
|
|
require 'factory_bot/declaration/implicit'
|
2011-11-19 16:34:31 -05:00
|
|
|
|
2017-10-20 15:20:28 -04:00
|
|
|
module FactoryBot
|
2012-05-05 02:31:31 -04:00
|
|
|
# @api private
|
2011-09-23 13:14:02 -04:00
|
|
|
class Declaration
|
|
|
|
attr_reader :name
|
|
|
|
|
2011-10-07 18:19:27 -04:00
|
|
|
def initialize(name, ignored = false)
|
|
|
|
@name = name
|
|
|
|
@ignored = ignored
|
2011-09-23 13:14:02 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def to_attributes
|
2011-10-07 18:19:27 -04:00
|
|
|
build
|
2011-09-23 13:14:02 -04:00
|
|
|
end
|
2011-10-14 15:14:43 -04:00
|
|
|
|
|
|
|
protected
|
|
|
|
attr_reader :ignored
|
2011-09-23 13:14:02 -04:00
|
|
|
end
|
|
|
|
end
|