If the file XXYY_menus.rb is encrypted, I believe it is replaced XXYY_menus.rbe (not a Ruby file, but a SketchUp-encrypted Ruby script).
The Sketchup::require() method accepts also file paths without extension, which will load either a file ending with .rbe or .rbs or .rb.