Oplop implementation for ruby