Project

General

Profile

Feature #16378

Updated by Eregon (Benoit Daloze) over 1 year ago

I think this is very important, otherwise `...` can be used only very rarely. 

 For instance, `method_missing` typically want to access the method name like: 
 ```ruby 
 def method_missing(name, ...) 
   if name.to_s.end_with?('?') 
     self[name] 
   else 
     fallback(name, ...) 
   end 
 end 
 ``` 

 See the original feature: https://bugs.ruby-lang.org/issues/16253#note-19. 
 I think most people expect `def method_missing(name, ...)` to work.

Back