Fix ruby function args parsing

Change-Id: I3149ce42e2bdfacf30e4feb4300e69b3f33882f6
Closes-bug: #1268579
Merge "Fix ruby function args parsing"