file1 requires file2, and I want to be able to cancel evaluating file2 under certain conditions without exiting the whole process.
file1
file2
Is using a method possible ? It will still parse the method but won't get executed. Something like :
#file1.rb puts "In file 1" require 'file2' puts "Back in file 1" a_method #file2.rb puts "In file 2" # <= A def a_method puts "Still in file 2" end