Method: FastRI::RiIndex#dump
- Defined in:
- lib/fastri/ri_index.rb
#dump(anIO) ⇒ Object
Serializes index to the given IO.
287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/fastri/ri_index.rb', line 287 def dump(anIO) anIO.puts MAGIC anIO.puts "Sources:" @paths.zip(@gem_names).each{|p,g| anIO.puts "%-30s %s" % [g, p]} anIO.puts "=" * 80 anIO.puts "Namespaces:" anIO.puts @namespace_array anIO.puts "=" * 80 anIO.puts "Methods:" anIO.puts @method_array anIO.puts "=" * 80 end |