-
-
Save havenwood/7d83c6aaf5b3077b82837970fcd3273f to your computer and use it in GitHub Desktop.
An example for #ruby IRC
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 Foo | |
def initialize(this, that:) | |
@this = this | |
@that = that | |
end | |
end | |
class Foo | |
alias original_initialize initialize | |
def initialize(...) | |
@thread = Thread.current | |
original_initialize(...) | |
end | |
end | |
Foo.new(:this, that: :that) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment