Last active
October 21, 2017 19:50
-
-
Save mariozig/8ebd78d4723b877251be4a4a7f5fef6e to your computer and use it in GitHub Desktop.
Refine the Integer class - http://ruby.zigzo.com/2017/10/21/refinements-fancy-monkey/
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 IntegerRefinements | |
refine Integer do | |
def to_s | |
'TWO, ALWAYS TWO!!!!' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment