方法
類別公開方法
new(編碼) 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/coder.rb, line 87 def initialize(encoding) @encoding = encoding end
實例公開方法
load(酬載) 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/coder.rb, line 91 def load(payload) payload.force_encoding(@encoding) end