Структуры (записи)

BoldLine = Struct.new(:color) do
    LineWidth = 10

    def showWidth
        puts "width is #{LineWidth}"
    end
end

line = BoldLine.new("red")
line.showWidth