Class: Rex::MIME::Part

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/mime/part.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePart

Returns a new instance of Part.



9
10
11
12
# File 'lib/rex/mime/part.rb', line 9

def initialize
	self.header = Rex::MIME::Header.new
	self.content = ''
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



7
8
9
# File 'lib/rex/mime/part.rb', line 7

def content
  @content
end

#headerObject

Returns the value of attribute header.



7
8
9
# File 'lib/rex/mime/part.rb', line 7

def header
  @header
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/rex/mime/part.rb', line 14

def to_s
	self.header.to_s + "\r\n" + self.content + "\r\n"
end