Sha256: cb08ecf3f21f0c2dea0c4f9f0a353a46f94a61490736ff9b94a5c51898cff0da
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module Avm module EacAsciidoctorBase0 module Instances class Build class Document class ChildDocsMacroValue enable_method_class common_constructor :document # @return [Array<String>] def result document.children.map { |child_doc| ChildDocLine.new(document, child_doc) }.sort .map(&:result) end class ChildDocLine common_constructor :document, :child compare_by :title, :address # @return [Pathname] def address document.href_to_other_body(child) end # @return [String] def link "link:#{address}[#{title}]" end # @return [String] def result "* #{link}" end # @return [String] def title child.source_document.title end end end end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems