Class: UnboundMethod Private
- Defined in:
- extend/object/duplicable/unbound_method.rb
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
- #duplicable? ⇒ false private
Unbound methods are not duplicable:.
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
12 | # File 'extend/object/duplicable/unbound_method.rb', line 12 def duplicable? = false |
© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/UnboundMethod.html