Mega Code Archive
Categories
/
Ruby
/
Class
This code starts by creating the Animal class, and then adds a method named initialize
# In Ruby, the initialize method is called automatically when you use a class to create an object. class Animal def initialize end end