local = 0 class Parent @@count = 0 def initialize @@count += 1 end def self.count @@count end end while (Parent.count != 5) do local = Parent.new puts Parent.count end
To embed this project on your website, copy the following code and paste it into your website's HTML: