struct

Number

Inherits Steppable < Comparable < Value < Object

The top-level number type.

Instance methods

to_bool

Converts to boolean based on value (1 - true, 0 - false, ArgumentError otherwise).

Source