Ruby concepts

Ruby · Mutability

Ruby Mutability puzzles

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