code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb in rwdgutenberg-0.03 vs code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb in rwdgutenberg-0.04

- old
+ new

@@ -1,11 +1,12 @@ # this code is to list the applets that are installed def listinstalledfiles - fileList = Dir.new("installed").entries.sort.reverse.delete_if { |x| ! (x =~ /inf$/) } - @filesresult = fileList.rwd_method("fillappletname") + fileList = Dir.new("installed").entries.sort.reverse.delete_if { |x| ! (x =~ /inf$/) } + @filesresult = fileList.rwd_method("fillappletname") end - + def fillappletname(inffile) - applet = inffile.gsub(/\.inf$/, "") - @a_installlist = applet - @a_removeapplet = applet -end + applet = inffile.gsub(/\.inf$/, "") + @a_installlist = applet + @a_removeapplet = applet +end +