Ruby - Class Methods and Variables
How can you modify this Ruby class to keep track of how many objects have been created using class instance variables?
class Bird
def initialize
# increment count here
end
def self.count
@count
end
end