added support for older versions of ruby where Object#provate_methods returns an array of string