I’m fairly new to Ruby, so I’m hoping this is a simple issue, but I
can’t quite seem to get it to work.
I simply want an if statement in a method to return a value based on the
location of the running script file. I’ve tried several variations of
the following syntax. I’ve also tried similar syntax in a case
if $0 == File.join(File.dirname(FILE) + ‘/…/source_dir/*.rb’)
Any help would be appreciated