Project

General

Profile

Actions

Feature #15632

open

Dynamic method references

Added by kddeisz (Kevin Newton) over 2 years ago. Updated over 2 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