View difference between Paste ID: MRubs8qu and cRhGBt4K
SHOW: | | - or go back to the newest paste.
1
java = File.open('./java')
2
3
File.open('./c').each_with_index do |line, number|
4
    if (line[0] != '/')     #avoid comments
5-
        java.convert(line)
5+
        convert(line)
6-
    
6+
	
7-
 
7+
    end
8
end
9-
  
9+
        
10
def convert(str)
11
    name, params = string.gsub!(/_/, ' ').split(" ").drop(2))
12
    "final Color #{name} = new Color(#{params}}" 
13
end