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
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
7 8 9 |
# File 'lib/rex/mime/part.rb', line 7 def content @content end |
#header ⇒ Object
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_s ⇒ Object
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 |