Issue #6180 has been updated by matz (Yukihiro Matsumoto).

Status changed from Assigned to Rejected

to_b is not acceptable, since it's very ambiguous.
to_bool might be more descriptive then !! but I am not sure where to use them.
And if (and other control structures) will never call bool conversion method in the future, for both simplicity and performance.

Matz.

----------------------------------------
Feature #6180: to_b for converting objects to a boolean value
https://bugs.ruby-lang.org/issues/6180#change-25469

Author: AaronLasseigne (Aaron Lasseigne)
Status: Rejected
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: 
Target version: 


When a boolean return value is required it has become common practice is to use "!!" to convert the object. It would be more consistent to provide a "to_b" method on Object.


-- 
http://bugs.ruby-lang.org/