Ruby concepts

Ruby · Mutability

Ruby Mutability puzzles

1 Ruby puzzle on mutability. Read the snippet, guess the output, then reveal the answer and why Ruby behaves that way.