Created
August 16, 2008 21:18
-
-
Save snusnu/5759 to your computer and use it in GitHub Desktop.
Extension to sam/extlib that makes dealing with nested modules easier
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
class Object | |
def full_const_defined?(name) | |
!!full_const_get(name) rescue false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment