方法不可複製
method(:puts).duplicable? # => false method(:puts).dup # => TypeError: allocator undefined for Method
來源:顯示 | GitHub 上
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 44 def duplicable? false end