This is a Rails plugin to manage parsing the EVE Killmail format used in the online MMORPG EVE Online.
km = Eve::Killmail::Parser.new(mail_to_parse_as_string) km.victim.name # => ‘Ix Forres’ km.attackers.each do |attacker| attacker.name # => ‘Attacker 1’ end km.destroyed.each do |item| item.name # => ‘Item lost 1’ endInstall to a Rails application using the following command (Rails 2.0.2 and greater)
ruby script/plugin install git://github.com/JamesHarrison/eve_killmail_parser.gitIf you are using an older Rails version, use
git clone git://github.com/JamesHarrison/eve_killmail_parser.git vendor/plugins/eve_killmail_parserOnce installed, you can generate documentation using rdoc (cd vendor/plugins/eve_killmail_parser;rake rdoc).
Copyright © 2008 James Harrison, released under the MIT license