diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-30 20:44:45 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-30 20:45:08 +0100 |
commit | 9bc98c5b77e479e541ff12e1aa79c17c78e77721 (patch) | |
tree | 9d46c4d54aedbd30ffaec1503919c34e885b7c31 /lib | |
parent | 0275aceb8374da0e360cc715eae63f38d464fc59 (diff) |
Define protected readers for attributes in Resolver
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asciidoctor/interdoc_reftext/resolver.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/asciidoctor/interdoc_reftext/resolver.rb b/lib/asciidoctor/interdoc_reftext/resolver.rb index bf0201d..7deac2f 100644 --- a/lib/asciidoctor/interdoc_reftext/resolver.rb +++ b/lib/asciidoctor/interdoc_reftext/resolver.rb @@ -53,9 +53,21 @@ module Asciidoctor::InterdocReftext protected + # @return [Array<String>] AsciiDoc file extensions (e.g. `.adoc`). + attr_reader :asciidoc_exts + # @return [Hash<String, String>] a cache of resolved reftexts. attr_reader :cache + # @return [Asciidoctor::Document] the document associated with this resolver. + attr_reader :document + + # @return [Logger] the logger to use for logging warning and errors. + attr_reader :logger + + # @return [Boolean] whether to raise exceptions, or just log them. + attr_reader :raise_exceptions + # @param target_path [String] the target path without a file extension. # @return [String, nil] file path of the *target_path*, or `nil` if not found. def resolve_target_path(target_path) |