Created
November 4, 2015 19:43
-
-
Save wkotzan-avant/092d801c5ccb9a9adec6 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