Class: UnboundMethod
- Defined in:
- lib/active_support_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
49 50 51 |
# File 'lib/active_support_ext/object/duplicable.rb', line 49 def duplicable? false end |