Jul 26
Apparently Object.to_a will eventually be obsolete (not sure when). I was using it in the following context:
def foo(args) args.to_a.join(',') end
According to this very old ruby-lang thread, this [*args] is a suitable alternative:
def foo(args) [*args].join(',') end
Recent Comments