Method: Exekutor::Configuration#json_serializer
- Defined in:
- lib/exekutor/configuration.rb
#json_serializer ⇒ String, ...
Gets the unconverted JSON serializer value. This can be either a String
, a Symbol
, a Proc
, or the serializer.
Default value:
JSON
76 77 78 79 80 |
# File 'lib/exekutor/configuration.rb', line 76 define_option :json_serializer, default: "::JSON", required: true do |value| unless value.is_a?(String) || value.is_a?(Symbol) || value.respond_to?(:call) || SerializerValidator.valid?(value) raise Error, "#json_serializer must either be a String, a Proc, or respond to #dump and #load" end end |