Sha256: 582174b3baa344f3f98e11ca06ac574fa3d20c53d651918a4e8f41c564c8b3b3

Contents?: true

Size: 1.29 KB

Versions: 22

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

22 entries across 22 versions & 7 rubygems

Version Path
jekyll-0.12.1 lib/jekyll/converter.rb
jekyll-reloaded-0.12.2 lib/jekyll/converter.rb
jekyll-0.12.0 lib/jekyll/converter.rb
spinto-jekyll-0.11.2.5 lib/jekyll/converter.rb
jekyll-reloaded-0.12.1 lib/jekyll/converter.rb
jekyll-reloaded-0.12 lib/jekyll/converter.rb
spinto-jekyll-0.11.2.3 lib/jekyll/converter.rb
spinto-jekyll-0.11.2.2 lib/jekyll/converter.rb
spinto-jekyll-0.11.2.1 lib/jekyll/converter.rb
jekyll-0.11.2 lib/jekyll/converter.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/jekyll-0.11.0/lib/jekyll/converter.rb
jekyll-0.11.0 lib/jekyll/converter.rb
fagiani-jekyll-0.10.1 lib/jekyll/converter.rb
jekyll-0.10.0 lib/jekyll/converter.rb
jekyll-0.9.0 lib/jekyll/converter.rb
jekyll-0.8.0 lib/jekyll/converter.rb
realityforge-jekyll-0.7.1-java lib/jekyll/converter.rb
jekyll-0.7.0 lib/jekyll/converter.rb
cartera-jekyll-0.6.2 lib/jekyll/converter.rb
jekyll-0.6.2 lib/jekyll/converter.rb