Struct is a built-in Ruby class for quickly creating simple classes that bundle together a few attributes — generating the constructor, accessors, equality, and more automatically. It's a concise way to define lightweight data classes without writing a full class.
The problem Struct solves
,
()
= x
= y
()
x == other.x && y == other.y
= .new(, )
