Module: ChupaText

Defined in:
lib/chupa-text/error.rb,
lib/chupa-text/data.rb,
lib/chupa-text/logger.rb,
lib/chupa-text/version.rb,
lib/chupa-text/loggable.rb,
lib/chupa-text/extractor.rb,
lib/chupa-text/mime-type.rb,
lib/chupa-text/text-data.rb,
lib/chupa-text/attributes.rb,
lib/chupa-text/decomposer.rb,
lib/chupa-text/input-data.rb,
lib/chupa-text/sax-parser.rb,
lib/chupa-text/screenshot.rb,
lib/chupa-text/unzippable.rb,
lib/chupa-text/decomposers.rb,
lib/chupa-text/size-parser.rb,
lib/chupa-text/file-content.rb,
lib/chupa-text/configuration.rb,
lib/chupa-text/timeout-value.rb,
lib/chupa-text/capture-logger.rb,
lib/chupa-text/default-logger.rb,
lib/chupa-text/path-converter.rb,
lib/chupa-text/utf8-converter.rb,
lib/chupa-text/decomposers/csv.rb,
lib/chupa-text/decomposers/tar.rb,
lib/chupa-text/decomposers/xml.rb,
lib/chupa-text/decomposers/zip.rb,
lib/chupa-text/formatters/hash.rb,
lib/chupa-text/formatters/json.rb,
lib/chupa-text/formatters/mime.rb,
lib/chupa-text/formatters/text.rb,
lib/chupa-text/virtual-content.rb,
lib/chupa-text/decomposers/gzip.rb,
lib/chupa-text/external-command.rb,
lib/chupa-text/virtual-file-data.rb,
lib/chupa-text/command/chupa-text.rb,
lib/chupa-text/mime-type-registry.rb,
lib/chupa-text/decomposer-registry.rb,
lib/chupa-text/configuration-loader.rb,
lib/chupa-text/decomposers/http-server.rb,
lib/chupa-text/decomposers/opendocument.rb,
lib/chupa-text/decomposers/office-open-xml.rb,
lib/chupa-text/decomposers/opendocument-text.rb,
lib/chupa-text/decomposers/office-open-xml-document.rb,
lib/chupa-text/decomposers/office-open-xml-workbook.rb,
lib/chupa-text/decomposers/opendocument-spreadsheet.rb,
lib/chupa-text/decomposers/opendocument-presentation.rb,
lib/chupa-text/command/chupa-text-generate-decomposer.rb,
lib/chupa-text/decomposers/office-open-xml-presentation.rb

Overview

Copyright (C) 2013 Kouhei Sutou [email protected]

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Defined Under Namespace

Modules: Command, Decomposers, Formatters, Loggable, MIMEType, Unzippable Classes: Attributes, CaptureLogger, Configuration, ConfigurationLoader, Data, Decomposer, DecomposerRegistry, DefaultLogger, DownloadError, EncryptedError, Error, ExternalCommand, Extractor, FileContent, InputData, InvalidDataError, MIMETypeRegistry, PathConverter, SAXListener, SAXParser, Screenshot, SizeParser, TextData, TimeoutError, TimeoutValue, UTF8Converter, UnknownEncodingError, VirtualContent, VirtualFileData

Constant Summary collapse

VERSION =
"1.3.5"

Class Method Summary collapse

Class Method Details

.loggerLogger

Returns The logger of ChupaText. DefaultLogger is used by default.

Returns:

  • (Logger)

    The logger of ChupaText. DefaultLogger is used by default.



21
22
23
# File 'lib/chupa-text/logger.rb', line 21

def logger
  @@logger ||= DefaultLogger.new
end

.logger=(logger) ⇒ Object

Parameters:

  • logger (Logger)

    The logger of ChupaText.



26
27
28
# File 'lib/chupa-text/logger.rb', line 26

def logger=(logger)
  @@logger = logger
end