Create a gist now

Instantly share code, notes, and snippets.

class Mammal
def self.inherited(child_class)
puts "Hey I'm going to be called when I'm inherited"
super
end
end
class Dog < Mammal
end
#
=> "Hey I'm going to be called when I'm inherited"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment