Created
September 9, 2010 22:11
-
-
Save chad/572697 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 A | |
overlay_module Integer, MyIntegerCrap | |
class Blah | |
def do_it | |
puts 1.day | |
end | |
end | |
end | |
A::Blah.new.do_it # => prints the result of 1.day | |
1.day # => raises an exception |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment