2018-10-07 21:45:51 -04:00
|
|
|
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)
|
2020-06-05 15:15:18 -04:00
|
|
|
@name = name
|
2011-10-07 18:19:27 -04:00
|
|
|
@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
|
2018-09-27 21:35:05 -04:00
|
|
|
|
2011-10-14 15:14:43 -04:00
|
|
|
attr_reader :ignored
|
2011-09-23 13:14:02 -04:00
|
|
|
end
|
|
|
|
end
|