Ruby port of MobileESP library (automatic conversion from Java source)