方法
实例公有方法
duplicable?() 链接
未绑定方法不可复制
method(:puts).unbind.duplicable? # => false
method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod
源代码:显示 | 在 GitHub 上
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 54 def duplicable? false end