Project

General

Profile

Actions

Feature #15632

closed

Dynamic method references

Added by kddeisz (Kevin Newton) almost 4 years ago. Updated almost 4 years ago.

Status:
Feedback
Priority:
Normal
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