This doesn't make the target object read-only - it just returns a reference to it.
class Person
attr_accessor :sanity
def initialize
@sanity = 50
end
end Fireworks discharge: 8
Fall on and from stairs and steps: 1,818
Bitten or struck by dog: 32
Contact with venomous snakes and lizards: 8
Accidental drowning and submersion: 3,579
Exposure to electric transmission lines: 93
Transport accidents: 48,412
Contact with hot tap-water: 32
Terrorism: 0
You're more likely to be killed by hot tap-water than you are by a terrorist. key = @xzoor.askKey(@door)