class Plaintext::XlsHandler

Constants

CONTENT_TYPES
DEFAULT

Public Class Methods

new() click to toggle source
# File lib/plaintext/file_handler/external_command_handler/xls_handler.rb, line 12
def initialize
  @content_types = CONTENT_TYPES
  @command = Plaintext::Configuration['xls2csv'] || DEFAULT
end

Public Instance Methods

text(*_) click to toggle source
Calls superclass method Plaintext::ExternalCommandHandler#text
# File lib/plaintext/file_handler/external_command_handler/xls_handler.rb, line 16
def text(*_)
  if str = super
    str.delete('"').gsub /,+/, ' '
  end
end