Class: Rex::MIME::Part
- Inherits:
-
Object
- Object
- Rex::MIME::Part
- Defined in:
- lib/rex/mime/part.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize ⇒ Part
constructor
A new instance of Part.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Part
Returns a new instance of Part.
10 11 12 13 |
# File 'lib/rex/mime/part.rb', line 10 def initialize self.header = Rex::MIME::Header.new self.content = '' end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
8 9 10 |
# File 'lib/rex/mime/part.rb', line 8 def content @content end |
#header ⇒ Object
Returns the value of attribute header.
8 9 10 |
# File 'lib/rex/mime/part.rb', line 8 def header @header end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/rex/mime/part.rb', line 15 def to_s self.header.to_s + "\r\n" + self.content + "\r\n" end |