I'm quite baffled by this as i can't find how and why it's happening. For years i'm using Sublime Text to open ruby files and surely i have Xcode installed but except of command line tools i don't use Xcode as an IDE ever.
Just since today and no software update has been installed in this regard for weeks Xcode registers itself to open .rb files.
When i noticed i used Finder / Get Info and all the normal procedure to fix this. and this works but only for an hour or so.
Suddenly clicking a ruby file i notice how the file icon changes mid click from the dark grey with orange icon to the white page with red icon from Xcode.
Played this game 5 times today and even tried rebooting.
Is there a way to prevent this from happening?
Sounded similar but only so far that for me this happens without any updates just after a short while multiple times a day.