Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Created November 6, 2017 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/85b461cf402709e020a7c8105030f269 to your computer and use it in GitHub Desktop.
Save dminuoso/85b461cf402709e020a7c8105030f269 to your computer and use it in GitHub Desktop.
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