Ruby error with SketchUp 2024

Please post code correctly in the forum: