命名空间
方法
类公共方法
proxy_class() 链接
返回当前代理类。
来源: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/multibyte.rb, line 23 def self.proxy_class @proxy_class ||= ActiveSupport::Multibyte::Chars end
proxy_class=(klass) 链接
调用 mb_chars 时返回的代理类。您可以使用此访问器来配置自己的代理类,以便支持其他编码。请参阅 ActiveSupport::Multibyte::Chars 实现以获取如何执行此操作的示例。
ActiveSupport::Multibyte.proxy_class = CharsForUTF32
来源: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/multibyte.rb, line 14 def self.proxy_class=(klass) ActiveSupport.deprecator.warn( "ActiveSupport::Multibyte.proxy_class= is deprecated and will be removed in Rails 8.2. " \ "Use normal string methods instead." ) @proxy_class = klass end