Method: Rouge::CLI::Style#initialize
- Defined in:
- lib/rouge/cli.rb
#initialize(opts) ⇒ Style
430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/rouge/cli.rb', line 430 def initialize(opts) theme_name = opts.delete(:theme_name) theme_class = Theme.find(theme_name) \ or error! "unknown theme: #{theme_name}" @theme = theme_class.new(opts) if opts[:tex] tex_prefix = opts[:tex_prefix] @theme = TexThemeRenderer.new(@theme, prefix: tex_prefix) end end |