Check if interpreted ruby script is being required or not
if $0 == __FILE__
# File is executed directly
else
# File is required
end
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Related Tags
#ruby
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#