Sha256: c7cc0492fb5ea183222afc39fc3f4d08426150f918b97a87bd126dd2f560132e

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

module Hyla
  class Configuration

    attr_reader :HEADER, :INDEX_SUFFIX, :HEADER_INDEX, :INCLUDE_PREFIX, :INCLUDE_SUFFIX, :LEVEL_1, :LEVEL_2, :SKIP_CHARACTERS,
                :ADOC_EXT, :PREFIX_ARTEFACT, :TEMPLATES

    def initialize()

      @INCLUDE_PREFIX = 'include::'
      @INCLUDE_SUFFIX = '[]'

      @INDEX_SUFFIX = '_AllSlides.index'

      @HEADER = ":data-uri:\n" +
                ":icons: font\n" +
                ":last-update-label!:\n" +
                ":source-highlighter: coderay\n" +
                ":toc: left\n" +
                "\n"

      @HEADER_INDEX = ":data-uri:\n" +
                      ":navigation:\n" +
                      ":menu:\n" +
                      ":status:\n" +
                      "\n"

      @LEVEL_1 = '= '

      @LEVEL_2 = '== '

      @SKIP_CHARACTERS = '>>'

      @ADOC_EXT = '.adoc'

      @PREFIX_ARTEFACT  = 'asciidoc_'

      @TEMPLATES = '../../lib/templates'

    end

    # Templates Location
    def templates
      File.expand_path(@TEMPLATES, File.dirname(__FILE__))
    end

  end # Class Artefact
end # module Hyla

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyla-1.0 lib/hyla/configuration.rb