Module: Jekyll::Utils::Rouge
- Defined in:
- lib/jekyll/utils/rouge.rb
Class Method Summary collapse
Class Method Details
.html_formatter(*args) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/jekyll/utils/rouge.rb', line 9 def self.html_formatter(*args) if old_api? ::Rouge::Formatters::HTML.new(*args) else ::Rouge::Formatters::HTMLLegacy.new(*args) end end |
.old_api? ⇒ Boolean
17 18 19 |
# File 'lib/jekyll/utils/rouge.rb', line 17 def self.old_api? ::Rouge.version.to_s < "2" end |