Class: ZombieFactory
- Inherits:
-
Object
- Object
- ZombieFactory
- Defined in:
- lib/zombie-chaser/human.rb
Instance Method Summary collapse
- #create_zombie ⇒ Object
-
#initialize(test_pattern, world) ⇒ ZombieFactory
constructor
A new instance of ZombieFactory.
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_zombie ⇒ Object
196 197 198 |
# File 'lib/zombie-chaser/human.rb', line 196 def create_zombie Zombie.new_using_test_unit_handler(@test_pattern, @world) end |