An .rb file is VERY old - from around RealBasic version 5 or earlier perhaps older as the extension for these was changed to rbp because Ruby also use .rb as the extension for their files
It’s very likely you’ll have to open this in version 5.5, save it as XML or Text & then be able to open it in later versions