Class: Bunnicula::BunnyFarm
Class Method Summary collapse
Class Method Details
.breed(connection_options = {}) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/bunnicula/bunny_farm.rb', line 8 def self.breed(={}) bunny = Bunny.new() bunnies << bunny bunny.start bunny end |
.bunnies ⇒ Object
4 5 6 |
# File 'lib/bunnicula/bunny_farm.rb', line 4 def self.bunnies @@bunnies ||= [] end |
.stop ⇒ Object
17 18 19 |
# File 'lib/bunnicula/bunny_farm.rb', line 17 def self.stop bunnies.each {|bunny|bunny.stop} end |