lib/gratr/rdot.rb in gratr-0.4.2 vs lib/gratr/rdot.rb in gratr-0.4.3

- old
+ new

@@ -5,9 +5,15 @@ # This is a modified version of dot.rb from Dave Thomas's rdoc project. I [Horst Duchene] # renamed it to rdot.rb to avoid collision with an installed rdoc/dot. # # It also supports undirected edges. +class Hash + def stringify_keys + inject({}) {|options, (key, value)| options[key.to_s] = value; options} + end +end unless Hash.respond_to? :stringify_keys + module DOT # These glogal vars are used to make nice graph source. $tab = ' '