Skip to content

Instantly share code, notes, and snippets.

@havenwood

havenwood/foo.rb Secret

Last active July 20, 2020 17:09
Show Gist options
  • Save havenwood/7d83c6aaf5b3077b82837970fcd3273f to your computer and use it in GitHub Desktop.
Save havenwood/7d83c6aaf5b3077b82837970fcd3273f to your computer and use it in GitHub Desktop.
An example for #ruby IRC
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