Sha256: 3837f0182c41aa3f25a0ca35f454d96d9bc1d9ab37a0b03b55a91aba0b5b0586
Contents?: true
Size: 1.1 KB
Versions: 41
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true require 'avm/eac_webapp_base0/sources/base' require 'avm/eac_asciidoctor_base0/sources/runners' require 'eac_ruby_utils/core_ext' module Avm module EacAsciidoctorBase0 module Sources class Base < ::Avm::EacWebappBase0::Sources::Base CONTENT_DIRECTORY_SUBPATH = ::Pathname.new('content') CONTENT_DOCUMENT_BASENAME = ::Pathname.new('body.adoc') MAIN_FILE_SUBPATH = CONTENT_DIRECTORY_SUBPATH.join(CONTENT_DOCUMENT_BASENAME) require_sub __FILE__, include_modules: true def content_directory path.join(CONTENT_DIRECTORY_SUBPATH) end # @return [Avm::EacAsciidoctorBase0::Sources::Base::InstanceToBuild] def instance_to_build ::Avm::EacAsciidoctorBase0::Sources::Base::InstanceToBuild.new(self) end # @return [Avm::EacAsciidoctorBase0::Sources::Base::Document def root_document ::Avm::EacAsciidoctorBase0::Sources::Base::Document.new(self, nil, nil) end def valid? path.join(MAIN_FILE_SUBPATH).file? end end end end end
Version data entries
41 entries across 41 versions & 2 rubygems