metasploit-framework/lib/rex/mime/part.rb

20 lines
257 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