Creates a text table from a given object.