Class: UnboundMethod

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

Instance Method Summary collapse

Instance Method Details

#duplicable?false

Unbound methods are not duplicable:

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

Returns:

  • (false)


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

def duplicable? = false