Created
November 6, 2017 06:56
-
-
Save dminuoso/85b461cf402709e020a7c8105030f269 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
def self.writer_path(*args) | |
-> (paths,val, obj) { | |
obj.deep_dup.tap { |o| o.dig(*paths) = val } | |
}.curry[*args] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment