lib/memdump/memory_dump.rb
# Write the dump to a GML file that can loaded by Gephi
#
# @param [Pathname,String,IO] the path or the IO stream into which we should
#   dump
Write the dump to a GML file that can loaded by Gephi
Write the dump to a GML file that can loaded by Gephi
def to_gml(io_or_path)
            if io_or_path.kind_of?(IO)
                MemDump.convert_to_gml(self, io_or_path)
            else
                Pathname(io_or_path).open 'w' do |io|
                    to_gml(io)
                end
            end
            nil
        end
def to_gml ( io_or_path ) if io_or_path . kind_of? ( IO ) MemDump . convert_to_gml ( self , io_or_path ) else Pathname ( io_or_path ) . open 'w' do | io | to_gml ( io ) end end nil end
Write the dump to a GML file that can loaded by Gephi
Write the dump to a GML file that can loaded by Gephi
io_or_path
the path or the IO stream into which we should dump
the path or the IO stream into which we should dump