Method code for $page_bin_index._show_methods()

[Turn on line numbering]
arg obj;
var methods, types, m, t, out;

types = #[];
for m in (obj.methods().sort(obj.methods().mmap('to_string)))
    types = types.add_elem(obj.method_access(m), [m] + obj.method_info(m));

// hard-listing the types guarantee's their order
out = [];
for t in (['root, 'driver, 'frob, 'public, 'protected, 'private]) {
    if (!types.contains(t))
        continue;
    out += [tostr(t).capitalize() + " methods:"];
    for m in (types[t])
        out += [strfmt("%5l %4r " + ._make_method_href([obj, m[1], m[2]]), $object_lib.parse_method_flags(m[7]), m[5])];
}
return out;

// Brad Roberts
// Bruce Mitchener, Jr.
// Created 16-May-1997 as a part of ColdCore, see: @help Credit

Tlon