summaryrefslogtreecommitdiff
path: root/lib/asciidoctor
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-01-30 20:44:45 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-01-30 20:45:08 +0100
commit9bc98c5b77e479e541ff12e1aa79c17c78e77721 (patch)
tree9d46c4d54aedbd30ffaec1503919c34e885b7c31 /lib/asciidoctor
parent0275aceb8374da0e360cc715eae63f38d464fc59 (diff)
Define protected readers for attributes in Resolver
Diffstat (limited to 'lib/asciidoctor')
-rw-r--r--lib/asciidoctor/interdoc_reftext/resolver.rb12
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)