Project

General

Profile

Actions

Feature #15632

closed

Dynamic method references

Added by kddnewton (Kevin Newton) about 5 years ago. Updated about 5 years ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:91652]

Description

In Ruby 2.7 we have the new .: method reference operator, which is so great!

I was hoping to be able to use this operator dynamically (which you currently have to fall back to the method method). What I'm proposing is

foo.:"bar_#{baz}"

which is basically the equivalent of dyna symbols.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0