Class: Jekyll::Converter

Inherits:
Plugin
  • Object
show all
Defined in:
lib/jekyll/converter.rb

Constant Summary

Constant Summary

Constants inherited from Plugin

Plugin::PRIORITIES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Plugin

#<=>, <=>, descendants, priority, safe

Constructor Details

#initialize(config = {}) ⇒ Converter

Initialize the converter.

Returns an initialized Converter.



30
31
32
# File 'lib/jekyll/converter.rb', line 30

def initialize(config = {})
  @config = config
end

Class Method Details

.highlighter_prefix(highlighter_prefix = nil) ⇒ Object

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.



10
11
12
13
# File 'lib/jekyll/converter.rb', line 10

def self.highlighter_prefix(highlighter_prefix = nil)
  @highlighter_prefix = highlighter_prefix if highlighter_prefix
  @highlighter_prefix
end

.highlighter_suffix(highlighter_suffix = nil) ⇒ Object

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.



22
23
24
25
# File 'lib/jekyll/converter.rb', line 22

def self.highlighter_suffix(highlighter_suffix = nil)
  @highlighter_suffix = highlighter_suffix if highlighter_suffix
  @highlighter_suffix
end

Instance Method Details

#highlighter_prefixObject

Get the highlighter prefix.

Returns the String prefix.



37
38
39
# File 'lib/jekyll/converter.rb', line 37

def highlighter_prefix
  self.class.highlighter_prefix
end

#highlighter_suffixObject

Get the highlighter suffix.

Returns the String suffix.



44
45
46
# File 'lib/jekyll/converter.rb', line 44

def highlighter_suffix
  self.class.highlighter_suffix
end