Well I've been trying to learn ruby so I've been taking it step by step. So I decided to test my self in making a window but it says something is wrong but I can figure out what. So I was woundering what I did wrong in this script.
class My_First_Test
def initialize
super(0, 0, 200, 200)
self.contents=Bitmap.new(width-32, heigth-32)
self.contents.font.name = "Aerial"
self.contents.font.size = 24
refresh
end
def refresh
self.contents.clear
self.contents.text.color = text.color(7)
self.contents.draw_text(20, 0, 200, 200, "Woot!")
end
end
So yeah, it said something was wrong with line 4 but I can't figure out what ;__;