Class: UnboundMethod

Inherits:
Object show all
Defined in:
lib/active_support/core_ext/object/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)


54
55
56
# File 'lib/active_support/core_ext/object/duplicable.rb', line 54

def duplicable?
  false
end