Removed the 'ref' class method.

The 'ref' class method wasn't needed since its purpose was to do the same thing as initializing a new pointer.