mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			189 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			189 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# directory access
 | 
						|
# list all files but .*/*~/*.o
 | 
						|
dirp = Dir.open(".")
 | 
						|
for f in dirp
 | 
						|
  case f
 | 
						|
  when /\A\./, /~\z/, /\.o\z/
 | 
						|
    # do not print
 | 
						|
  else
 | 
						|
    print f, "\n"
 | 
						|
  end
 | 
						|
end
 | 
						|
dirp.close
 |