Method code for $root.format_setting()

[Turn on line numbering]
arg name, definer, value;
var i, args;

i = definer.setting_info(name);
if (dict_contains(i, 'format)) {
    args = sublist(i['format], 2);
    catch ~methodnf
        return (> .(i['format][1])(value, @args) <);
    with
        return (> $settings_lib.(i['format][1])(value, @args) <);
}
if (type(value) == 'objnum)
    return value.namef('ref);
else
    return "" + value;

["// Created as a part of ColdCore, see: @help Credit"]

the Cold Dark