I hereby claim:
- I am rmcafee on github.
- I am rmcafee (https://keybase.io/rmcafee) on keybase.
- I have a public key ASBxIlsjcm_oRnL5xVGq-GpOrYFxU1_H1uj--LDRhcnHzwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Hash | |
def except(*blacklist) | |
{}.tap do |h| | |
(keys - blacklist).each { |k| h[k] = self[k] } | |
end | |
end | |
def only(*whitelist) | |
{}.tap do |h| | |
(keys & whitelist).each { |k| h[k] = self[k] } |