W3cubDocs

/Ruby on Rails 7.0

class UnboundMethod

Parent:
Object

Public Instance Methods

duplicable?() Show source
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 46
def duplicable?
  false
end

Unbound methods are not duplicable:

method(:puts).unbind.duplicable? # => false
method(:puts).unbind.dup         # => TypeError: allocator undefined for UnboundMethod

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.