Sha256: ede9551b24658d76ccd20fa4328ade7171ae240ca99bff5c0a7eb5781881691d

Contents?: true

Size: 1.35 KB

Versions: 50

Compression:

Stored size: 1.35 KB

Contents

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)
      @highlighter_prefix = highlighter_prefix if highlighter_prefix
      @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)
      @highlighter_suffix = highlighter_suffix if highlighter_suffix
      @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

50 entries across 50 versions & 3 rubygems

Version Path
blackboard-3.1.9 lib/jekyll/converter.rb
blackboard-3.1.8 lib/jekyll/converter.rb
blackboard-3.1.7 lib/jekyll/converter.rb
jekyll-3.1.6 lib/jekyll/converter.rb
jekyll-3.1.5 lib/jekyll/converter.rb
jekyll-3.1.4 lib/jekyll/converter.rb
jekyll-3.0.5 lib/jekyll/converter.rb
jekyll-3.1.3 lib/jekyll/converter.rb
jekyll-3.0.4 lib/jekyll/converter.rb
jekyll-3.1.2 lib/jekyll/converter.rb
jekyllplusadmin-1.1.0 lib/jekyll/converter.rb
jekyllplusadmin-1.0.0 lib/jekyll/converter.rb
jekyll-3.0.3 lib/jekyll/converter.rb
jekyll-3.1.1 lib/jekyll/converter.rb
jekyll-3.1.0 lib/jekyll/converter.rb
jekyll-3.1.0.pre.rc3 lib/jekyll/converter.rb
jekyll-3.0.2 lib/jekyll/converter.rb
jekyll-3.1.0.pre.rc2 lib/jekyll/converter.rb
jekyll-3.1.0.pre.rc1 lib/jekyll/converter.rb
jekyll-3.1.0.pre.beta1 lib/jekyll/converter.rb