Created
March 20, 2014 09:02
-
-
Save threeifbywhiskey/9659874 to your computer and use it in GitHub Desktop.
Apparently to_proc'd lambdas can't be contained within arrays?
This file contains 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 Object | |
def >> _ | |
_.send *self | |
end | |
end | |
['get', '/', &-> { ['haml', 'to_sym' >> 'index'] >> self }] >> self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment