Skip to content

Instantly share code, notes, and snippets.

@gerrywastaken

gerrywastaken/rub_pipes.rb

Last active May 18, 2018
Embed
What would you like to do?
class Object
def |
yield(self)
end
end
'./public/webpack/manifest.json'
.|(&File.method(:read))
.|(&JSON.method(:parse))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.