123456789_123456789_123456789_123456789_123456789_

Class: Method

Relationships & Source Files
Inherits: Object
Defined in: activesupport/lib/active_support/core_ext/object/duplicable.rb

Instance Attribute Summary

Instance Attribute Details

#duplicable?Boolean (readonly)

Methods are not duplicable:

method(:puts).duplicable? # => false
method(:puts).dup         # => TypeError: allocator undefined for Method
[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 36

def duplicable?
  false
end