Files
metasploit-gs/lib/rex/mime/part.rb
T
HD Moore 964c5b8081 This adds simple MIME support to the Rex library
git-svn-id: file:///home/svn/framework3/trunk@4607 4d416f70-5f16-0410-b530-b9f4589650da
2007-04-02 03:58:11 +00:00

21 lines
258 B
Ruby

module Rex
module MIME
class Part
require 'rex/mime/header'
attr_accessor :header, :content
def initialize
self.header = Rex::MIME::Header.new
self.content = ''
end
def to_s
self.header.to_s + "\r\n" + self.content + "\r\n"
end
end
end
end