Sha256: 992e44ad6fef1b864b692fc902a6704145bfb6f5c2ceebbcb1141f9402b6e721
Contents?: true
Size: 485 Bytes
Versions: 9
Compression:
Stored size: 485 Bytes
Contents
# this code is to list the file data def listgutrecordfiles if File.exist?($rwdgutenberg_directory) fileList = Dir.new($rwdgutenberg_directory).entries.sort.delete_if { |x| ! (x =~ /gut$/) } @gutenbergrecordsresult = fileList.rwd_method("fillgutenbergrecordname") end end # this method is to help fill in list of names def fillgutenbergrecordname(inffile) applet = inffile.gsub(/\.gut$/, "") @a_viewgutenberg = applet end
Version data entries
9 entries across 9 versions & 2 rubygems