跳至内容 跳至搜索
方法
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