Insert a list of attributes into a component. (With Ruby console)

You may want to start using something like Dan Rathbun’s multi-file template: [Template] Multi-File, Multi-Class with SharedConstants Mixin - Developers / Ruby API - SketchUp Community

It may seem like more than you need at first. But it’s a good template to get you familiar with best practices as your extensions become more complex.