Module: Pygments

Extended by:
Forwardable
Defined in:
lib/pygments/popen.rb,
lib/pygments.rb,
lib/pygments/lexer.rb,
lib/pygments/version.rb

Overview

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

Defined Under Namespace

Classes: Lexer, Popen

Constant Summary collapse

VERSION =
'2.1.0'

Class Method Summary collapse

Class Method Details

.engineObject


12
13
14
15
# 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