Why doesn't Ruby have Boolean class?

Time
2025年8月09日 15:50 ~ 16:20
Speaker
OKURA Masafumi
Room
TR209
Collaborative Notes
https://hackmd.io/BJlwTqZdll
EnglishIntermediate
RubyConf Taiwan

Abstract

Ruby is a fully object-oriented language. While other OO languages such as Java have a Boolean class, Ruby doesn’t have it. It doesn’t have methods like to_bool. So, is it bad for Ruby programmers? No, we feel comfortable without Boolean class or to_bool method. This leads to questions: What is Boolean, what is class and how Ruby designs it? And finally, why doesn’t Ruby have Boolean class? This talk answers “Why doesn’t Ruby have Boolean class?” question and explores the world of OOP and language design.

About the Speaker

OKURA Masafumi

OKURA Masafumi

Masafumi is a software developer based in Tokyo, Japan. He has been working on Ruby and Rails projects for over a decade. He maintains several gems and organizes a tech conference called Kaigi on Rails. He gave a talk at RubyConf Tw 2023 and a few other international conferences.