Class: YARD::Serializers::Base

Attributes

Instance Attributes

options [RW] public

Returns the value of attribute options.

Constructor Summary

public initialize(opts = {})
[View source]


6
7
8
# File 'lib/yard/serializers/base.rb', line 6

def initialize(opts = {})
  @options = SymbolHash.new(false).update(opts)
end

Public Visibility

Public Instance Method Summary

#after_serialize(data)
#before_serialize
#serialize(object, data)
#serialized_path(object)

Public Instance Method Details

after_serialize

public after_serialize(data)
[View source]


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

def after_serialize(data); end

before_serialize

public before_serialize
[View source]


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

def before_serialize; end

serialize

public serialize(object, data)
[View source]


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

def serialize(object, data) end

serialized_path

public serialized_path(object)
[View source]


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

def serialized_path(object) end