Created
August 29, 2014 18:16
-
-
Save josephcc/1670f70e2f6228468072 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
| class Float | |
| alias_method :orig_to_s, :to_s | |
| def to_s | |
| return round(4).orig_to_s | |
| end | |
| def inspect | |
| return to_s | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment