Created
March 7, 2015 20:49
-
-
Save ipmsteven/3d03f48ffb8e3622d037 to your computer and use it in GitHub Desktop.
weird hello world
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
| obj = '' | |
| obj.define_singleton_method :to_s, ->(s) { "hello #{s}" } | |
| obj.to_s('world') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment