Created
August 3, 2017 22:00
-
-
Save ukd1/be099bbae668954247fb838f5921a3ff to your computer and use it in GitHub Desktop.
This file contains 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 A | |
def version | |
self.class::VERSION || 1 | |
end | |
end | |
class B < A | |
VERISON = 2 | |
end | |
B.new.version == 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment