Class: Docx2TXT::Docx

Inherits:
Object
  • Object
show all
Defined in:
lib/docx2txt.rb

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ Docx

Returns a new instance of Docx.



7
8
9
# File 'lib/docx2txt.rb', line 7

def initialize location
  @location = location
end

Instance Method Details

#to_txtObject



11
12
13
# File 'lib/docx2txt.rb', line 11

def to_txt
  get_text get_xml
end