Last active
August 12, 2017 00:03
-
-
Save hoffm/8fdb0d6fd843d06931b874357ad0e35c 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 MyClass | |
def foo_via_method | |
foo_method | |
end | |
def foo_via_constant | |
FOO_CONSTANT | |
end | |
end | |
class SubClass < MyClass | |
FOO_CONSTANT = "foo" | |
def foo_method | |
FOO_CONSTANT | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment