Class: UnboundMethod
- Defined in:
- activesupport/lib/active_support/core_ext/object/duplicable.rb
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
46 47 48 |
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 46 def duplicable? false end |