Point = Struct.new(:x, :y) do def initialize(x, y) self.x = x self.y = y endendp1 = Point.new(1, 2)# p1.x is 1 and p1.y is 2puts "p1 is (#{p1.x}, #{p1.y})"# p2 = Point.new # <-Error