im making a script and i have a block in it that is exactly the same as another all except for the text and it gives me the error of super: no superclassmethod `negative' it would be greatly appreciated if some one could please help me.
here is the part of the script
and then this part which is identical but leads to a different def
here is the part of the script
def correct
super(0, 358, 621, 100)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = 'Arial'
self.contents.font.size = 24
refresh_2
end
super(0, 358, 621, 100)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = 'Arial'
self.contents.font.size = 24
refresh_2
end
def negative
super(0, 358, 621, 100)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = 'Arial'
self.contents.font.size = 24
refresh_3
end
super(0, 358, 621, 100)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = 'Arial'
self.contents.font.size = 24
refresh_3
end