Class: Method

Inherits:
Object show all
Defined in:
activesupport/lib/active_support/core_ext/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

Methods are not duplicable:

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

Returns:

  • (Boolean)


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

def duplicable?
  false
end