From: Meghana Kop Date: 2012-12-19T10:55:18+09:00 Subject: NoMethodError raised for using 'raise' in code. I have a superclass called EntryForm. All sub-classes of this class need to implement a function called draw(). To ensure that it is done so, I declared it in the superclass and raise an error when a call is made to the superclass's implementation of the fn instead of being implemented in the sub-class. However, when I tried to instantiate the sub-class StudentEntryForm(I have not implemented draw() in Student... and expect NotImplementedError to be raised.), I get the following error: lib/Qt/qtruby4.rb:2401:in `method_missing': undefined method `raise' for # (NoMethodError) def draw() raise NotImplementedError, 'You must implement draw() in all of EntryForm\'s sub-classes' end Thanks! -- Posted via http://www.ruby-forum.com/.