Class: Docxtor2::Package::Part

Inherits:
Object
  • Object
show all
Defined in:
lib/docxtor2/package/part.rb

Direct Known Subclasses

Document

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



3
4
5
# File 'lib/docxtor2/package/part.rb', line 3

def content
  @content
end

#filenameObject (readonly)

Returns the value of attribute filename.



3
4
5
# File 'lib/docxtor2/package/part.rb', line 3

def filename
  @filename
end