I need to define a function in a script that is loading another script, and use it in the script being loaded. For example:
main file:
require 'file'
def FunctionA()
#define function here
end
file.rb:
FunctionA()
I cannot move the definition to the file being included. Is there any way I can do this?