Class: Method

Inherits:
Object show all
Defined in:
extend/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?false

Methods are not duplicable:

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

Returns:

  • (false)


37
# File 'extend/object/duplicable.rb', line 37

def duplicable? = false