Skip to content

@ruprict /gist:2470572
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Something went wrong with that request. Please try again.