Created
May 29, 2009 20:11
-
-
Save aub/120180 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Base | |
def self.some_method | |
puts 'Some method!' | |
end | |
def self.inherited(subclass) | |
puts 'Inherited!' | |
end | |
end | |
class Sub < Base | |
some_method | |
end | |
Class.new(Base) do | |
some_method | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment