跳至内容 跳至搜索
方法
D

实例公共方法

duplicable?()

方法不可复制

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