Skip to Content Skip to Search

class Method

Public instance methods

Methods are not duplicable:

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

Definition files