跳至内容 跳至搜索
方法
D

实例公共方法

duplicable?()

未绑定方法是不可复制的

method(:puts).unbind.duplicable? # => false
method(:puts).unbind.dup         # => TypeError: allocator undefined for UnboundMethod
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 54
def duplicable?
  false
end