方法
包含的模組
常數
JSON_START_WITH | = | /\A(?:[{\["]|-?\d|true|false|null)/ |
實例公開方法
_load(dumped) 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 90 def _load(dumped) ActiveSupport::JSON.decode(dumped) end
dump(object) 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 86 def dump(object) ActiveSupport::JSON.encode(object) end
dumped?(dumped) 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 96 def dumped?(dumped) JSON_START_WITH.match?(dumped) end
format() 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 82 def format :json end