Method: MultiJson#adapter

Defined in:
lib/multi_json.rb

#adapterClass (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the current adapter class

Examples:

MultiJson.adapter  #=> MultiJson::Adapters::Oj

Returns:

  • the current adapter class

API:

  • private



99
100
101
# File 'lib/multi_json.rb', line 99

def adapter
  @adapter ||= use(nil)
end