Skip to content

Instantly share code, notes, and snippets.

@CHTJonas
Created December 14, 2019 13:39
Show Gist options
  • Save CHTJonas/064f9e6175b4d5ae5ae6248217951d43 to your computer and use it in GitHub Desktop.
Save CHTJonas/064f9e6175b4d5ae5ae6248217951d43 to your computer and use it in GitHub Desktop.
Full method delegation in Ruby 3
def foo(*args, **kwargs, &block)
target(*args, **kwargs, &block)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment