Methods

Included Modules

Constants

JSON_START_WITH = /\A(?:[{\["]|-?\d|true|false|null)/

Instance Public methods

_load(dumped)

📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 90
          def _load(dumped)
            ActiveSupport::JSON.decode(dumped)
          end
🔎 See on GitHub

dump(object)

📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 86
          def dump(object)
            ActiveSupport::JSON.encode(object)
          end
🔎 See on GitHub

dumped?(dumped)

📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 96
          def dumped?(dumped)
            JSON_START_WITH.match?(dumped)
          end
🔎 See on GitHub

format()

📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 82
          def format
            :json
          end
🔎 See on GitHub