class DocxParser

Public Class Methods

new() click to toggle source
# File lib/file_parsers/docx_parser.rb, line 5
def initialize
  @content = ''
end

Public Instance Methods

read_file(file_path) click to toggle source
# File lib/file_parsers/docx_parser.rb, line 9
def read_file file_path
  doc = Docx::Document.open( file_path )
  doc.paragraphs.each{ |p| @content << p.text }
  @content
end