Method: YARD::Serializers::Base#exists?

Defined in:
lib/yard/serializers/base.rb

#exists?(object) ⇒ Boolean

This method is abstract.

This method should return whether the endpoint already exists. For instance, a file system serializer would check if the file exists on disk. You will most likely use #basepath and #serialized_path to get the endpoint’s location.

Returns whether an object has been serialized

Parameters:

Returns:

  • (Boolean)

    whether the endpoint exists.

Since:

  • 0.6.0


61
# File 'lib/yard/serializers/base.rb', line 61

def exists?(object) false end