Skip to content

Instantly share code, notes, and snippets.

@wkotzan-avant
Created November 4, 2015 19:43
Show Gist options
  • Save wkotzan-avant/092d801c5ccb9a9adec6 to your computer and use it in GitHub Desktop.
Save wkotzan-avant/092d801c5ccb9a9adec6 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