Forked from wkotzan-avant/reload_already_loaded_file.rb
Created
November 6, 2015 05:00
-
-
Save wakproductions/54585f9418d87087f3f8 to your computer and use it in GitHub Desktop.
Reloads the filename given
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module WAKUtils | |
def self.reload(require_regex) | |
$".grep(/#{require_regex}/).each {|e| $".delete(e) && require(e) } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment