@api private
# File lib/factory_girl/strategy_calculator.rb, line 4 def initialize(name_or_object) @name_or_object = name_or_object end
# File lib/factory_girl/strategy_calculator.rb, line 8 def strategy if strategy_is_object? @name_or_object else strategy_name_to_object end end
# File lib/factory_girl/strategy_calculator.rb, line 18 def strategy_is_object? @name_or_object.is_a?(Class) end
# File lib/factory_girl/strategy_calculator.rb, line 22 def strategy_name_to_object FactoryGirl.strategy_by_name(@name_or_object) end