0
編輯內由用戶調用的方法顯示模塊及類
class Tof
def Tof.etiology
puts "NS displacement of the infundibular septum"
end
def Tof.pathophys
puts "VSD, Overriding of the Aorta, RVH, pulmonary stenosis"
end
end
puts "What would you like to know?"
如何獲取用戶輸入Tof.etiology,使得看跌語句顯示
我真的不知道你在問什麼,你能澄清你期待發生什麼? – 2012-03-08 18:28:57
我想你錯了。你能提供你想要完成的更全面的概述嗎? – nicholaides 2012-03-08 18:39:46
基本上我想每次都有相同的7個方法的很多類,但爲了靈活性而留下空間 – 2012-03-08 20:35:14