In #1262, we have the binary_search_edge file that import a method of binary_search_insertion file. To prevent the driver code in the binary_search_insertion file being triggered when running the binary_search_edge file, we should put the driver code into this block:
### Driver Code ###
if __FILE__ == $0
# Your code
end
I create this PR to update the driver code of all the existing Ruby index files at main.
In #1262, we have the
binary_search_edge
file that import a method ofbinary_search_insertion
file. To prevent the driver code in thebinary_search_insertion
file being triggered when running thebinary_search_edge
file, we should put the driver code into this block:I create this PR to update the driver code of all the existing Ruby index files at main.