Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/gexf/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def dispatch_event(tagname, attributes)

def sanitize_attrs(attributes)
Hash[*attributes.flatten].
symbolize_keys.
symbolize_keys_for_gexf.
symbolize_graph_types
end

Expand Down
2 changes: 1 addition & 1 deletion lib/gexf/support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
GEXF::Graph::MODES).uniq

class Hash
def symbolize_keys
def symbolize_keys_for_gexf
hash = {}
each { |k,v| hash[k.to_sym] = delete(k) }
merge(hash)
Expand Down