Created
February 25, 2013 07:57
-
-
Save clicube/5028393 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
module MyModule | |
def pid | |
"MyModule.pid" | |
end | |
end | |
module ExtendModule | |
def pid | |
"ExtendModule.pid" | |
end | |
end | |
Process.extend ExtendModule | |
MyModule.extend ExtendModule | |
p Process.pid # => 5201 | |
p MyModule.pid # => "ExtendModule.pid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
間違えた記録(恥ずかしい)