module Pygments

frozen_string_literal: true

Pygments provides access to the Pygments library via a pipe and a long-running Python process.

frozen_string_literal: true

Constants

VERSION

Public Class Methods

engine() click to toggle source
# File lib/pygments.rb, line 12
def engine
  Thread.current.thread_variable_get(:pygments_engine) ||
    Thread.current.thread_variable_set(:pygments_engine, Pygments::Popen.new)
end