Method: YARD::Serializers::Base#serialize

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

#serialize(object, data) ⇒ Object

This method is abstract.

This method should implement the logic that serializes data to the respective endpoint. This method should also call the before and after callbacks #before_serialize and #after_serialize

Serializes an object.

Parameters:

  • object (CodeObjects::Base, String)

    the object to serialize the data for. The object can also be a string (for non-object serialization)

  • data (String)

    the contents that should be serialized

[View source]

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

def serialize(object, data) end