Use dci in ruby. Single identity implementation.