Class: Docxtor::Package::Part

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/docxtor/package/part.rb', line 4

def content
  @content
end

#filenameObject (readonly)

Returns the value of attribute filename.



4
5
6
# File 'lib/docxtor/package/part.rb', line 4

def filename
  @filename
end