Skip to Content Skip to Search
v7.1.0
class UnboundMethod < Object
Methods
D

Public instance methods

duplicable?()

Permalink

Unbound methods are not duplicable:

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