Schedule

Takeshi KOMIYA
Takeshi KOMIYA
  • @tk0miya

Ruby types hacker. One of the maintainers of rbs_rails and the type generators for Rails application. CTO of Time Intermedia Inc.

Introducing Type Guard to Steep

Type checking in Ruby often requires narrowing the types of objects, especially within complex conditionals or method chains. While Steep already supports type narrowing through built-in methods like #is_a? and #nil?, real-world Ruby applications frequently rely on user-defined logic for type narrowing.

In this talk, I will propose "Type Guard," an enhancement to Steep that enables developers to define custom type narrowing logic. This feature aims to bridge the gap between Steep's capabilities and the diverse needs of real-world Ruby projects, providing a more seamless type-checking experience.

Attendees will learn how Type Guard works, and how it can be integrated into their projects.