# File lib/factory_girl/step_definitions.rb, line 9 def initialize(human_hash, associations) @human_hash = human_hash @associations = associations end
# File lib/factory_girl/step_definitions.rb, line 14 def attributes(strategy = CreateAttributes) @human_hash.inject({}) do |attribute_hash, (human_key, value)| attributes = strategy.new(self, *process_key_value(human_key, value)) attribute_hash.merge({ attributes.key => attributes.value }) end end