Method: YARD::Serializers::Base#initialize

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

#initialize(opts = {}) ⇒ Base

Creates a new serializer with options

Parameters:

  • opts (Hash) (defaults to: {})

    the options to assign to #options

[View source]

27
28
29
# File 'lib/yard/serializers/base.rb', line 27

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