Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
FalseClass#to_s
() -> "false"
false.to_s → "false"
object.c
View on GitHub ↗
VALUE
rb_false_to_s(VALUE obj)
{
return rb_cFalseClass_to_s;
}
The string representation of false is “false”.