Sha256: 090960d817967352f07d268bc5cb1f5c9de56f81ac8eb1914b04841b13da77d6

Contents?: true

Size: 1.5 KB

Versions: 41

Compression:

Stored size: 1.5 KB

Contents

# frozen_string_literal: true

module Jekyll
  class Converter < Plugin
    # Public: Get or set the highlighter prefix. When an argument is specified,
    # the prefix will be set. If no argument is specified, the current prefix
    # will be returned.
    #
    # highlighter_prefix - The String prefix (default: nil).
    #
    # Returns the String prefix.
    def self.highlighter_prefix(highlighter_prefix = nil)
      unless defined?(@highlighter_prefix) && highlighter_prefix.nil?
        @highlighter_prefix = highlighter_prefix
      end
      @highlighter_prefix
    end

    # Public: Get or set the highlighter suffix. When an argument is specified,
    # the suffix will be set. If no argument is specified, the current suffix
    # will be returned.
    #
    # highlighter_suffix - The String suffix (default: nil).
    #
    # Returns the String suffix.
    def self.highlighter_suffix(highlighter_suffix = nil)
      unless defined?(@highlighter_suffix) && highlighter_suffix.nil?
        @highlighter_suffix = highlighter_suffix
      end
      @highlighter_suffix
    end

    # Initialize the converter.
    #
    # Returns an initialized Converter.
    def initialize(config = {})
      @config = config
    end

    # Get the highlighter prefix.
    #
    # Returns the String prefix.
    def highlighter_prefix
      self.class.highlighter_prefix
    end

    # Get the highlighter suffix.
    #
    # Returns the String suffix.
    def highlighter_suffix
      self.class.highlighter_suffix
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
jekyll-4.3.4 lib/jekyll/converter.rb
jekyll-3.10.0 lib/jekyll/converter.rb
jekyll-3.9.5 lib/jekyll/converter.rb
jekyll-3.9.4 lib/jekyll/converter.rb
jekyll-4.3.3 lib/jekyll/converter.rb
jekyll-3.9.3 lib/jekyll/converter.rb
jekyll-4.3.2 lib/jekyll/converter.rb
jekyll-4.3.1 lib/jekyll/converter.rb
jekyll-4.3.0 lib/jekyll/converter.rb
jekyll-3.9.2 lib/jekyll/converter.rb
jekyll-4.2.2 lib/jekyll/converter.rb
jekyll-3.9.1 lib/jekyll/converter.rb
jekyll-4.2.0 lib/jekyll/converter.rb
jekyll-3.9.0 lib/jekyll/converter.rb
jekyll-4.1.1 lib/jekyll/converter.rb
jekyll-4.1.0 lib/jekyll/converter.rb
jekyll-4.0.1 lib/jekyll/converter.rb
jekyll-3.8.7 lib/jekyll/converter.rb
jekyll-4.0.0 lib/jekyll/converter.rb
jekyll-4.0.0.pre.beta1 lib/jekyll/converter.rb