Sha256: d2a1b5fb8d190f7ec85f574f43af288455ed251865d4073f388b582738946105

Contents?: true

Size: 1.41 KB

Versions: 21

Compression:

Stored size: 1.41 KB

Contents

# part of rwdtinker smalllinux@gmail.com
# copyleft gpl 2008 Steven Gibson

require 'lib/rwdtinker/rwdtinkertools'

tmpmodload = '
def RwdtinkerTools.loadguifile(d)

	a = Array.new(Dir[d].entries.sort)
	#loop through and get the files names
	a.each do |x|
		#adjust the filters to the files you want to see...
		if(!test(?d,x))
			# only rwd files
			if x =~ /rb|rwd|txt/

				load x      #opens the file thats in fileName and reads it
				@@tempdoc += $rwdguivar # adds the file into the doc string
			end
		end
	end
end 

def RwdtinkerTools.findguifiles(guidir)
      @@tempdoc = ""
       #get a list of the files and subdirectories on the starting directory only
       a = Array.new(Dir[guidir].entries.sort)
       #loop through the list, ignore the files and add all new directories found
      a.each do |x|
	      #if a directory...
	      if(test(?d,x))
		     #use this new dir find to add to the original list of directories
		     @@root = x + "/**"
		     #adds the new ones to the array
		     b = Dir[@@root].entries.sort
		     b.each do |x|
			       if(test(?d,x))
				      a.push(x)  #appends to the end of the array...
			        end
		       end
	      end
       end
      a.each do |x|
	      #if it is a file...
	      if(!test(?d,x)) 
		    a.delete(x)

	      else #it is a directory...
		      loadguifile(x + "/**")
	      end
      end
      return @@tempdoc
      
end
'

RwdtinkerTools.module_eval(tmpmodload)

Version data entries

21 entries across 21 versions & 14 rubygems

Version Path
bigtinker-0.97 lib/rwdtinker/rwdguidir.rb
bigtinker-0.98 lib/rwdtinker/rwdguidir.rb
rubyslippers-1.08 lib/rwdtinker/rwdguidir.rb
rwddialogmap-0.02 lib/rwdtinker/rwdguidir.rb
rwdeliza-0.05 lib/rwdtinker/rwdguidir.rb
rwdgutenberg-0.13 lib/rwdtinker/rwdguidir.rb
rwdfoldeditor-0.07 lib/rwdtinker/rwdguidir.rb
rwdhypernote-0.16 lib/rwdtinker/rwdguidir.rb
rwdhypernote-0.15 lib/rwdtinker/rwdguidir.rb
rwdmpd-0.08 lib/rwdtinker/rwdguidir.rb
rwdlanguage-0.01 lib/rwdtinker/rwdguidir.rb
rwdmpd-0.07 lib/rwdtinker/rwdguidir.rb
rwdruby-1.08 lib/rwdtinker/rwdguidir.rb
rwdschedule-0.07 lib/rwdtinker/rwdguidir.rb
rwdtinker-1.82 lib/rwdtinker/rwdguidir.rb
rwdtinker-1.84 lib/rwdtinker/rwdguidir.rb
rwdtinker-1.83 lib/rwdtinker/rwdguidir.rb
rwdtinker-1.85 lib/rwdtinker/rwdguidir.rb
rwdtorrent-0.08 lib/rwdtinker/rwdguidir.rb
tinkerbell-0.03 lib/rwdtinker/rwdguidir.rb