code/01rwdcore/rwdtinkerversion.rb in rwdgutenberg-0.04 vs code/01rwdcore/rwdtinkerversion.rb in rwdgutenberg-0.05

- old
+ new

@@ -1,14 +1,22 @@ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL. # This application is a framework for writing programs from RubyWebDialogs # For information see http://www.rubyforge.net/projects/rwdapplications # return the version constant defined in the config file +def tinkerhelpaboutsetup +return ["RwdTinker","(c) 2004 Steven Gibson ","Version #{RwdTinkerVersion}"] +end + def runrwdtinkerversion @rwd_window = "applicationversion" - @versionappnamedisplay = "RwdTinker" - @versioncopyrightdisplay = "(c) 2004 Steven Gibson " - @versionnumberdisplay = "Version " + RwdTinkerVersion + helpaboutinput = @a_helpaboutinput.downcase + versionarraysetup = "#{helpaboutinput}helpaboutsetup" + versionarray= self.send(versionarraysetup) + + @versionappnamedisplay = versionarray[0].to_s + @versioncopyrightdisplay = versionarray[1].to_s + @versionnumberdisplay = versionarray[2].to_s end