privatise print_yaml, i.e. prefix the method name with an underscore