Skip to content

Instantly share code, notes, and snippets.

@threeifbywhiskey
Created March 20, 2014 09:02
Show Gist options
  • Save threeifbywhiskey/9659874 to your computer and use it in GitHub Desktop.
Save threeifbywhiskey/9659874 to your computer and use it in GitHub Desktop.
Apparently to_proc'd lambdas can't be contained within arrays?
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