[jruby-user] JRuby head: splat (i.e., **args) method params?
Josep Blanquer <[email protected]>
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CAA_K6Yt3UtJPZBMWGi++SNROuH88izv7TRqFPJWEWMyq2vS27A@mail.gmail.com> |
Hello,
It seems that as of the latest head from today:
jruby 9000.dev-SNAPSHOT (2.1.2p142) 2014-09-02 8771d02 Java HotSpot(TM)
64-Bit Server VM 24.0-b56 on 1.7.0_40-b43 [darwin-x86_64]
The following 2.1 syntax is not implemented?
ArgumentError: wrong number of arguments (3 for 2)
initialize at /...../file.rb:11
Where that line is:
def initialize(name, context,**opts)
am I missing something to make that happen in the current codebase? or is
this a well know feature that still has to be implemented?
If the latter is true: do you have any inkling as to when that could be
done?
Thank you!
Josep M.