Class: Docxtor::Package::Part
- Inherits:
-
Object
- Object
- Docxtor::Package::Part
- Defined in:
- lib/docxtor/package/part.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename, content) ⇒ Part
constructor
A new instance of Part.
Constructor Details
#initialize(filename, content) ⇒ Part
Returns a new instance of Part.
6 7 8 9 |
# File 'lib/docxtor/package/part.rb', line 6 def initialize(filename, content) @filename = filename @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/docxtor/package/part.rb', line 4 def content @content end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/docxtor/package/part.rb', line 4 def filename @filename end |