Module: Avm::EacAsciidoctorBase0::DocumentsOwner
- Included in:
- Instances::Build, Sources::Base
- Defined in:
- lib/avm/eac_asciidoctor_base0/documents_owner.rb
Instance Method Summary collapse
- #document(subpath) ⇒ Avm::EacAsciidoctorBase0::Sources::Document
- #documents ⇒ Enumerable<Avm::EacAsciidoctorBase0::Sources::Document>
- #root_document ⇒ Object
Instance Method Details
#document(subpath) ⇒ Avm::EacAsciidoctorBase0::Sources::Document
11 12 13 14 |
# File 'lib/avm/eac_asciidoctor_base0/documents_owner.rb', line 11 def document(subpath) documents.find { |d| d.subpath.to_pathname == subpath.to_pathname } || raise(::KeyError, "Document not found with subpath = \"#{subpath}\"") end |
#documents ⇒ Enumerable<Avm::EacAsciidoctorBase0::Sources::Document>
17 18 19 |
# File 'lib/avm/eac_asciidoctor_base0/documents_owner.rb', line 17 def documents ::EacRubyUtils::RecursiveBuilder.new(root_document, &:children).result end |
#root_document ⇒ Object
22 23 24 |
# File 'lib/avm/eac_asciidoctor_base0/documents_owner.rb', line 22 def root_document raise "Abstract method hit: #{__method__}" end |