Skip to content

Instantly share code, notes, and snippets.

@dmitry
Created July 29, 2014 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitry/9912919e33551c98d2c0 to your computer and use it in GitHub Desktop.
Save dmitry/9912919e33551c98d2c0 to your computer and use it in GitHub Desktop.
classes = []
Dir.glob("test/**/*").each do |v|
begin
if File.file?(v)
classes << File.read(v).match(/class ([a-z0-9\:_]+)/i)[1]
end
rescue Exception => e
end
end
p classes.group_by { |v| v }.map {|k,v| [k, v.size] }.sort_by { |_, v| v }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment