Actions
Feature #11605
closedRuby should raise on def(a='a', b) [optional param that can't be used]
Feature #11605:
Ruby should raise on def(a='a', b) [optional param that can't be used]
Updated by usa (Usaku NAKAMURA) almost 11 years ago
Updated by rosenfeld (Rodrigo Rosenfeld Rosas) almost 11 years ago
Oh, thanks. I had no idea on how to try this. I've tried a(, 'required'). Actually, I was reading a method like a(req1, opt='opt', req2) and thought it would be impossible to use the default value, but now I understand how optional arguments work in Ruby. Sorry for the confusion.
Updated by hsbt (Hiroshi SHIBATA) almost 5 years ago
- Project changed from 14 to Ruby
Actions