https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c13
--- Comment #13 from Duncan Mac-Vicar 2011-07-18 10:05:39 UTC ---
I discussed this bug with Jiri during the workshop. The reason it happens is
because the bindings use Method#arity when it should probably use
Method#parameters (as detailed in the ruby-doc).
Method#arity returns negative numbers when there are optional parameters and
this causes the crash. So YCP should always call ruby passing _all_ parameters
of a ruby method with optional arguments.
Sadly, the advertised Merthod#parameters
(http://www.ruby-doc.org/core/classes/Method.html#M001075) does not seem to be
available in the interpreter.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.