Class: UnboundMethod

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

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

Unbound methods are not duplicable:

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

Returns:

  • (Boolean)


28
29
30
# File 'lib/core_ext/duplicable.rb', line 28

def duplicable?
  false
end