One of the coolest techniques for writing structured code is to use a decorator. Ruby has a Delegator class (https://docs.ruby-lang.org/en/master/Delegator.html), a DelegateClass method (https://docs.ruby-lang.org/en/master/Object.html#method-i-DelegateClass) and a simple delegation implementation SimpleDelegator (https://docs.ruby-lang.org/en/master/SimpleDelegator.html). If you are really interested in their implementation, you can find the source code here (https://github.com/ruby/delegate/blob/master/lib/delegate.rb).
