Polaroid provides shortcuts to capture the state of a Ruby object, and can construct a fake object later to mimic that state.