delegate icon indicating copy to clipboard operation
delegate copied to clipboard

This library provides three different ways to delegate method calls to an object.

Results 4 delegate issues
Sort by recently updated
recently updated
newest added

Since 3.0.0, the library documentation is only partially rendered. Neither SimpleDelegator nor the `DelegateClass` kernel method appear in the documentation. https://ruby-doc.org/stdlib-3.0.0/libdoc/delegate/rdoc/Delegator.html https://ruby-doc.org/stdlib-3.0.1/libdoc/delegate/rdoc/Delegator.html https://ruby-doc.org/stdlib-3.0.2/libdoc/delegate/rdoc/Delegator.html I'm not sure if splitting it into...

Further description is at https://bugs.ruby-lang.org/issues/19287 This defines 37% faster method when it takes no argument. Benchmark: Warming up -------------------------------------- old 551.697k i/100ms new 721.906k i/100ms Calculating ------------------------------------- old 6.511M (±...

This change lets Delegate avoid using shared data, and it makes sure that methods are defined using shareable Procs. In this way, Delegate's ability to be used within Ractors is...

Before this commit, modules included in a `DelegateClass` could not override delegate methods: ```ruby Base = Class.new do def foo "base" end end Helper = Module.new do def foo "helper"...