Actions
Bug #16297
closedcalling undefined allocator by `Class.instance_method(:allocate)`
Bug #16297:
calling undefined allocator by `Class.instance_method(:allocate)`
Description
For instance, Rational.allocate
is undefined.
Rational.allocate #=> undefined method `allocate' for Rational:Class (NoMethodError)
But it can be called by Class.instance_method(:allocate)
.
Class.instance_method(:allocate).bind_call(Rational) #=> (0/1)
Class.instance_method(:allocate).bind(Rational).call #=> (0/1)
These allocators are defined for Marshal, and undefined as methods.
Actions