Class: Docxtor2::Package::Part
- Inherits:
-
Object
- Object
- Docxtor2::Package::Part
- Defined in:
- lib/docxtor2/package/part.rb
Direct Known Subclasses
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.
5 6 7 8 |
# File 'lib/docxtor2/package/part.rb', line 5 def initialize(filename, content) @filename = filename @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/docxtor2/package/part.rb', line 3 def content @content end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
3 4 5 |
# File 'lib/docxtor2/package/part.rb', line 3 def filename @filename end |