Module: AnyStyle

Extended by:
Utils
Defined in:
lib/anystyle.rb,
lib/anystyle/page.rb,
lib/anystyle/refs.rb,
lib/anystyle/utils.rb,
lib/anystyle/errors.rb,
lib/anystyle/finder.rb,
lib/anystyle/parser.rb,
lib/anystyle/feature.rb,
lib/anystyle/support.rb,
lib/anystyle/version.rb,
lib/anystyle/document.rb,
lib/anystyle/dictionary.rb,
lib/anystyle/format/csl.rb,
lib/anystyle/normalizer.rb,
lib/anystyle/feature/ref.rb,
lib/anystyle/feature/caps.rb,
lib/anystyle/feature/line.rb,
lib/anystyle/feature/affix.rb,
lib/anystyle/feature/words.rb,
lib/anystyle/format/bibtex.rb,
lib/anystyle/feature/indent.rb,
lib/anystyle/feature/number.rb,
lib/anystyle/feature/quotes.rb,
lib/anystyle/dictionary/gdbm.rb,
lib/anystyle/feature/keyword.rb,
lib/anystyle/feature/locator.rb,
lib/anystyle/normalizer/date.rb,
lib/anystyle/normalizer/page.rb,
lib/anystyle/normalizer/type.rb,
lib/anystyle/dictionary/redis.rb,
lib/anystyle/feature/brackets.rb,
lib/anystyle/feature/category.rb,
lib/anystyle/feature/position.rb,
lib/anystyle/feature/terminal.rb,
lib/anystyle/normalizer/arxiv.rb,
lib/anystyle/normalizer/names.rb,
lib/anystyle/feature/canonical.rb,
lib/anystyle/normalizer/locale.rb,
lib/anystyle/normalizer/pubmed.rb,
lib/anystyle/normalizer/quotes.rb,
lib/anystyle/normalizer/volume.rb,
lib/anystyle/dictionary/marshal.rb,
lib/anystyle/feature/dictionary.rb,
lib/anystyle/normalizer/edition.rb,
lib/anystyle/normalizer/journal.rb,
lib/anystyle/normalizer/locator.rb,
lib/anystyle/normalizer/unicode.rb,
lib/anystyle/feature/punctuation.rb,
lib/anystyle/normalizer/brackets.rb,
lib/anystyle/normalizer/location.rb,
lib/anystyle/normalizer/container.rb,
lib/anystyle/normalizer/publisher.rb,
lib/anystyle/normalizer/punctuation.rb

Defined Under Namespace

Modules: Format, PDFUtils, StringUtils, Utils Classes: Dictionary, Document, Error, Feature, Finder, Normalizer, Page, Parser, ParserCore, Refs, TrainingError

Constant Summary collapse

SUPPORT =
File.expand_path('../support', __FILE__)
RES =
File.expand_path('../../../res', __FILE__)
VERSION =
'1.5.0'.freeze

Class Method Summary collapse

Methods included from Utils

maybe_require

Class Method Details

.find(input, **opts) ⇒ Object



72
73
74
# File 'lib/anystyle.rb', line 72

def self.find(input, **opts)
  finder.find(input, **opts)
end

.finderObject



68
69
70
# File 'lib/anystyle.rb', line 68

def self.finder
  Finder.instance
end

.parse(input, **opts) ⇒ Object



64
65
66
# File 'lib/anystyle.rb', line 64

def self.parse(input, **opts)
  parser.parse(input, **opts)
end

.parserObject



60
61
62
# File 'lib/anystyle.rb', line 60

def self.parser
  Parser.instance
end