Class: UnboundMethod

Inherits:
Object show all
Defined in:
extend/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?false

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Unbound methods are not duplicable:

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

Returns:

  • (false)


56
# File 'extend/object/duplicable.rb', line 56

def duplicable? = false