https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112019-05-24T00:52:28ZRuby Issue Tracking SystemRuby master - Feature #15842: Allow DelegateClass() to module_eval given blockhttps://bugs.ruby-lang.org/issues/15842?journal_id=781822019-05-24T00:52:28Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul></ul><p>As delegate.rb is unmaintained, unless someone objects in the next week, I plan on committing this feature.</p> Ruby master - Feature #15842: Allow DelegateClass() to module_eval given blockhttps://bugs.ruby-lang.org/issues/15842?journal_id=782722019-05-31T01:41:32Zjeremyevans (Jeremy Evans)code@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="Allow DelegateClass() to module_eval given block Methods that return classes often module_eval t..." href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/1cd93f1cdfbe6f7e71b05b3f8e707f21d70e94ba">git|1cd93f1cdfbe6f7e71b05b3f8e707f21d70e94ba</a>.</p>
<hr>
<p>Allow DelegateClass() to module_eval given block</p>
<p>Methods that return classes often module_eval the given block<br>
(e.g. Class.new and Struct.new). This allows DelegateClass to<br>
work similarly. This makes it easier to use DelegateClass<br>
directly without subclassing, so as not to create an unnecessary<br>
subclass.</p>
<p>Implements [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Allow DelegateClass() to module_eval given block (Closed)" href="https://bugs.ruby-lang.org/issues/15842">#15842</a>]</p>