• Yukihiro "Matz" Matsumoto's avatar
    Remove implicit conversion using `to_int` method. · afca99a4
    Yukihiro "Matz" Matsumoto authored
    The ISO standard does not include implicit type conversion using
    `to_int`. This implicit conversion often causes vulnerability.
    There will be no more attacks like #4120.
    
    In addition, we have added internal convenience method `__to_int` which
    does type check and conversion (from floats).
    afca99a4
enum.rb 21.9 KB