Class: UnboundMethod
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/core_ext/object/duplicable.rb |
Instance Attribute Summary
-
#duplicable? ⇒ Boolean
readonly
Unbound methods are not duplicable:
Instance Attribute Details
#duplicable? ⇒ Boolean
(readonly)
Unbound methods are not duplicable:
method(:puts).unbind.duplicable? # => false
method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 54
def duplicable? false end