Class: Jekyll::Converter
Direct Known Subclasses
Constant Summary
Constants inherited from Plugin
Class Method Summary collapse
-
.pygments_prefix(pygments_prefix = nil) ⇒ Object
Public: Get or set the pygments prefix.
-
.pygments_suffix(pygments_suffix = nil) ⇒ Object
Public: Get or set the pygments suffix.
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Converter
constructor
Initialize the converter.
-
#pygments_prefix ⇒ Object
Get the pygments prefix.
-
#pygments_suffix ⇒ Object
Get the pygments suffix.
Methods inherited from Plugin
<=>, inherited, priority, safe, subclasses
Constructor Details
#initialize(config = {}) ⇒ Converter
Initialize the converter.
Returns an initialized Converter.
31 32 33 |
# File 'lib/jekyll/converter.rb', line 31 def initialize(config = {}) @config = config end |
Class Method Details
.pygments_prefix(pygments_prefix = nil) ⇒ Object
Public: Get or set the pygments prefix. When an argument is specified, the prefix will be set. If no argument is specified, the current prefix will be returned.
pygments_prefix - The String prefix (default: nil).
Returns the String prefix.
11 12 13 14 |
# File 'lib/jekyll/converter.rb', line 11 def self.pygments_prefix(pygments_prefix = nil) @pygments_prefix = pygments_prefix if pygments_prefix @pygments_prefix end |
.pygments_suffix(pygments_suffix = nil) ⇒ Object
Public: Get or set the pygments suffix. When an argument is specified, the suffix will be set. If no argument is specified, the current suffix will be returned.
pygments_suffix - The String suffix (default: nil).
Returns the String suffix.
23 24 25 26 |
# File 'lib/jekyll/converter.rb', line 23 def self.pygments_suffix(pygments_suffix = nil) @pygments_suffix = pygments_suffix if pygments_suffix @pygments_suffix end |
Instance Method Details
#pygments_prefix ⇒ Object
Get the pygments prefix.
Returns the String prefix.
38 39 40 |
# File 'lib/jekyll/converter.rb', line 38 def pygments_prefix self.class.pygments_prefix end |
#pygments_suffix ⇒ Object
Get the pygments suffix.
Returns the String suffix.
45 46 47 |
# File 'lib/jekyll/converter.rb', line 45 def pygments_suffix self.class.pygments_suffix end |