Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wakproductions/54585f9418d87087f3f8 to your computer and use it in GitHub Desktop.
Save wakproductions/54585f9418d87087f3f8 to your computer and use it in GitHub Desktop.
Reloads the filename given
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