← Back to archive

Stdle #66 · modules · 2026-08-11

What does this Ruby snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

puts Integer.ancestors.include?(Comparable)
puts Integer.ancestors.include?(Numeric)
puts Integer.ancestors.include?(String)
Modules
3 lines
4 attempts left

Answer & explanation