December 2010
11 posts
New GnuPG Key
Just found four old gnupg keys, I used some time ago. Nevermind, here’s my actual one: http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0x8AE61A13DA69553F
Ruby Class-Structure
If you want to know the structure of classes in Ruby, you can use this to create a graphviz dot-file:
File.open('classes.dot', 'w') do |f| f.write "digraph classes {\n" f.write(ObjectSpace.each_object(Class).map { |c| "\"#{c.to_s}\" -> \"#{c.superclass.to_s}\"" }.join("\n") }) f.write "}" end
Bu I haven’t yet found a way, to display the result, as it’s just too huge.