From 9bc98c5b77e479e541ff12e1aa79c17c78e77721 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 30 Jan 2018 20:44:45 +0100 Subject: Define protected readers for attributes in Resolver --- lib/asciidoctor/interdoc_reftext/resolver.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib') 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] AsciiDoc file extensions (e.g. `.adoc`). + attr_reader :asciidoc_exts + # @return [Hash] 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) -- cgit v1.2.3