Hi:
An .rb is the filename extension for a Ruby script. Ruby is a high level scripting language used for Sketchup to automate repetitive, or multiple operations to achieve a modeling purpose.
How to install on a Mac can be found here for a start: http://help.sketchup.com/en/article/38583