From: shevegen@... Date: 2020-02-03T17:01:47+00:00 Subject: [ruby-core:97052] [Ruby master Feature#16605] Support argument delegation (...) with blocks/define_method Issue #16605 has been updated by shevegen (Robert A. Heiler). It may be that this is a new suggestion, at the least I don't recall a similar proposal although perhaps others thought about it before, since it may make sense (e. g. if you wish to dynamically add methods). ---------------------------------------- Feature #16605: Support argument delegation (...) with blocks/define_method https://bugs.ruby-lang.org/issues/16605#change-84144 * Author: svoop (Sven Schwyn) * Status: Open * Priority: Normal ---------------------------------------- (I couldn't find anything on this in the bug tracker or other official sources, hope it's not a duplicate since it's kind of tricky to search for it.) The following doesn't work on Ruby 2.7: ``` define_method(:delegate) do |...| # <-- syntax error target(...) end ``` Are there any plans to support argument delegation in block arguments? -- https://bugs.ruby-lang.org/ Unsubscribe: