class DocRipper::Ripper::Base
Attributes
file_path[R]
Public Class Methods
new(file_path)
click to toggle source
# File lib/doc_ripper/base.rb, line 7 def initialize(file_path) file_parts = file_path.split('.') @file_path = file_path @extension = file_parts.last end
Public Instance Methods
text()
click to toggle source
# File lib/doc_ripper/base.rb, line 13 def text @text ||= rip end
Private Instance Methods
to_shell(file_path)
click to toggle source
# File lib/doc_ripper/base.rb, line 19 def to_shell(file_path) Shellwords.escape(file_path) end