Sha256: de73863465d86deed54e80c1a111d1e75442539d2e5fd8c14cce2240b06afb09

Contents?: true

Size: 1.29 KB

Versions: 24

Compression:

Stored size: 1.29 KB

Contents

module Jekyll
  class Converter < Plugin
    # 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.
    def self.pygments_prefix(pygments_prefix = nil)
      @pygments_prefix = pygments_prefix if pygments_prefix
      @pygments_prefix
    end

    # 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.
    def self.pygments_suffix(pygments_suffix = nil)
      @pygments_suffix = pygments_suffix if pygments_suffix
      @pygments_suffix
    end

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

    # Get the pygments prefix.
    #
    # Returns the String prefix.
    def pygments_prefix
      self.class.pygments_prefix
    end

    # Get the pygments suffix.
    #
    # Returns the String suffix.
    def pygments_suffix
      self.class.pygments_suffix
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
jekyll-1.5.1 lib/jekyll/converter.rb
jekyll-1.5.0 lib/jekyll/converter.rb
jekyll-1.4.3 lib/jekyll/converter.rb
jekyll-1.4.2 lib/jekyll/converter.rb
jekyll-1.4.1 lib/jekyll/converter.rb
jekyll-1.4.0 lib/jekyll/converter.rb
jekyll-1.3.1 lib/jekyll/converter.rb
jekyll-1.3.0 lib/jekyll/converter.rb
jekyll-1.3.0.rc lib/jekyll/converter.rb
monad-0.0.3 lib/jekyll/converter.rb
jekyll-1.2.1 lib/jekyll/converter.rb
jekyll-1.2.0 lib/jekyll/converter.rb
jekyll-1.0.4 lib/jekyll/converter.rb
jekyll-1.1.2 lib/jekyll/converter.rb
jekyll-1.1.1 lib/jekyll/converter.rb
jekyll-1.0.3 lib/jekyll/converter.rb
jekyll-1.0.2 lib/jekyll/converter.rb
jekyll-1.0.1 lib/jekyll/converter.rb
jekyll-1.0.0 lib/jekyll/converter.rb
jekyll-1.0.0.rc1 lib/jekyll/converter.rb