Add an helper to get the functions by attribute from a reference of an object.