# File lib/graphviz/elements.rb, line 8 def push( obj ) @elements.push( obj ) if @elements_hash_by_type[obj['type']].nil? @elements_hash_by_type[obj['type']] = Array.new end @elements_hash_by_type[obj['type']].push( obj ) end