The thing is that G.parse('a') puts (well, tries to put) the parse result into $/. $/ is a part of your method's signature and by default those are read-only. That's why you're being accused of assigning to a readonly variable.

what you'll need to do is either call the parameter something else or put G.parse('a') into an inner scope that defines its own $/.

I'm willing to close this as "notabug".

Reply via email to