Call method in other files


I`m using ruby to automation test (with selenium), but is common I use a method to do login into multiple files. How can I put this method in just one file and call it in my other files?


Not sure what this has to do with Rails, but likely the answer is to
use require.