#Parent class
class TestScript
def self.inherited(subclass)
test = subclass.new()
#This failed to i commented it out
#test.send(:run)
#this throws an error
test.run()
end
end
#Child class
class Example < TestScript
def initialize(options={});end;
def run()
return "I get an error that says this method doesn't exist"
end
end
|