Last active
June 24, 2016 08:24
-
-
Save e-jambon/2c82e85389ee567ceac1b8b2e919bf79 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 String | |
def to_proc | |
eval "Proc.new { |*args| args.first#{self} }" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment