class FactoryGirl::StrategyCalculator

@api private

Public Class Methods

new(name_or_object) click to toggle source
# File lib/factory_girl/strategy_calculator.rb, line 4
def initialize(name_or_object)
  @name_or_object = name_or_object
end

Public Instance Methods

strategy() click to toggle source
# 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