Skip to content

@ryanbriones /gist:430455 forked from dan-manges/gist:430424
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
def mask(x)y=x.dup;y[6,6]='*'*6;y;end
@rab
rab commented

Ryan, This changes the referenced string and is not equivalent to Dan's. -Rob

@ryanbriones
Owner

added #dup in order to not mutate x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.