Using Ruby to customise Open cut list extension

Hi all.

The latest update of OpenCutLust extension says exporting a parts list can be customised with Ruby code.

We have multiple tags on our components for example “A.red,B.green,C.blue”. When we export to microsoft excel all the tags are in one column. Is there a way to add ruby code so the tags for components are all in their own column ?. Also is a formula possible using ruby. For example a column that shows materials total (which would multiply the quantity column with the length column)

Hopefully this makes sense
Thanks in Advance.