Class: UnboundMethod
Instance Method Summary collapse
-
#duplicable? ⇒ Boolean
Unbound methods are not duplicable:.
Instance Method Details
#duplicable? ⇒ Boolean
Unbound methods are not duplicable:
method(:puts).unbind.duplicable? # => false
method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod
28 29 30 |
# File 'lib/core_ext/duplicable.rb', line 28 def duplicable? false end |