Class: ZombieFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/zombie-chaser/human.rb

Instance Method Summary collapse

Constructor Details

#initialize(test_pattern, world) ⇒ ZombieFactory

Returns a new instance of ZombieFactory.



192
193
194
# File 'lib/zombie-chaser/human.rb', line 192

def initialize(test_pattern, world)
  @test_pattern, @world = test_pattern, world
end

Instance Method Details

#create_zombieObject



196
197
198
# File 'lib/zombie-chaser/human.rb', line 196

def create_zombie
  Zombie.new_using_test_unit_handler(@test_pattern, @world)
end