GimpUi.Ruler.prototype.get_unit

function get_unit(): Gimp.Unit {
    // Gjs wrapper for gimp_ruler_get_unit()
}
  

Since 2.8

Returns

the unit currently used in the ruler widget.