https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2015-06-02T20:11:39Z
Ruby Issue Tracking System
Ruby master - Bug #11213: defined?(super) ignores respond_to_missing?
https://redmine.ruby-lang.org/issues/11213?journal_id=52721
2015-06-02T20:11:39Z
ko1 (Koichi Sasada)
<ul></ul><p>However it is difficult because we can't call <code>self.respond_to_missing?</code> directly because we should ignore <code>C1#respond_to_missing?</code>.</p>
<p>Options:<br>
(1) Ignore this issue as a spec (or known issue)<br>
(2) Do <code>super</code> (it has compatibility issue)<br>
(3) Introduce something special to call <code>respond_to_missing?</code></p>
<p>My recommendation is (1).</p>
Ruby master - Bug #11213: defined?(super) ignores respond_to_missing?
https://redmine.ruby-lang.org/issues/11213?journal_id=88543
2020-11-17T12:20:37Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul></ul><p><a href="https://github.com/ruby/ruby/pull/3777" class="external">https://github.com/ruby/ruby/pull/3777</a></p>
Ruby master - Bug #11213: defined?(super) ignores respond_to_missing?
https://redmine.ruby-lang.org/issues/11213?journal_id=88618
2020-11-20T07:05:06Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="[Bug #11213] let defined?(super) call respond_to_missing?" href="https://redmine.ruby-lang.org/projects/ruby-master/repository/git/revisions/fac2498e0299f13dffe4f09a7dd7657fb49bf643">git|fac2498e0299f13dffe4f09a7dd7657fb49bf643</a>.</p>
<hr>
<p>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: defined?(super) ignores respond_to_missing? (Closed)" href="https://redmine.ruby-lang.org/issues/11213">#11213</a>] let defined?(super) call respond_to_missing?</p>
Ruby master - Bug #11213: defined?(super) ignores respond_to_missing?
https://redmine.ruby-lang.org/issues/11213?journal_id=89873
2021-01-12T06:43:02Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/17509">Bug #17509</a>: Custom respond_to? methods in modules break defined?(super)</i> added</li></ul>