Skip to content

Instantly share code, notes, and snippets.

@angelbotto
Created February 27, 2016 02:37
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 angelbotto/9b83906b98dca3bf37d5 to your computer and use it in GitHub Desktop.
Save angelbotto/9b83906b98dca3bf37d5 to your computer and use it in GitHub Desktop.
ignore = %w(name dafuq)
replace_with = "*"
data = {
secure: {
name: 'value 1',
last: 'value 2'
},
content: {
dinamic: {
name: 'value 3'
}
},
lol: {
jiji: {
jojo: {
dafuq: 'value 4'
}
}
}
}
# i need replace values in every object with index called name and dafuq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment