From sketch to physics world and vice versa

The java code (PBox2D inherits this from Box2DProcessing)

public float scaleToProcessing(float val)

public float scaleToProcessing(float val) {
        return val * scaleFactor;
}

Ruby usage

Use camel case

scale_to_processing(val)