Class: Jekyll::Converter
Direct Known Subclasses
Jekyll::Converters::Identity, Jekyll::Converters::Markdown, Jekyll::Converters::Textile
Constant Summary
Constant Summary
Constants inherited from Plugin
Class Method Summary (collapse)
-
+ (Object) pygments_prefix(pygments_prefix = nil)
Public: Get or set the pygments prefix.
-
+ (Object) pygments_suffix(pygments_suffix = nil)
Public: Get or set the pygments suffix.
Instance Method Summary (collapse)
-
- (Converter) initialize(config = {})
constructor
Initialize the converter.
-
- (Object) pygments_prefix
Get the pygments prefix.
-
- (Object) pygments_suffix
Get the pygments suffix.
Methods inherited from Plugin
<=>, inherited, priority, safe, subclasses
Constructor Details
- (Converter) initialize(config = {})
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
+ (Object) pygments_prefix(pygments_prefix = nil)
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.
10 11 12 13 |
# File 'lib/jekyll/converter.rb', line 10 def self.pygments_prefix(pygments_prefix = nil) @pygments_prefix = pygments_prefix if pygments_prefix @pygments_prefix end |
+ (Object) pygments_suffix(pygments_suffix = nil)
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.
22 23 24 25 |
# File 'lib/jekyll/converter.rb', line 22 def self.pygments_suffix(pygments_suffix = nil) @pygments_suffix = pygments_suffix if pygments_suffix @pygments_suffix end |
Instance Method Details
- (Object) pygments_prefix
Get the pygments prefix.
Returns the String prefix.
37 38 39 |
# File 'lib/jekyll/converter.rb', line 37 def pygments_prefix self.class.pygments_prefix end |
- (Object) pygments_suffix
Get the pygments suffix.
Returns the String suffix.
44 45 46 |
# File 'lib/jekyll/converter.rb', line 44 def pygments_suffix self.class.pygments_suffix end |