Class: XCPretty::Syntax
- Inherits:
-
Object
- Object
- XCPretty::Syntax
- Defined in:
- lib/xcpretty/syntax.rb
Class Method Summary collapse
Class Method Details
.highlight(code, options = "") ⇒ Object
4 5 6 |
# File 'lib/xcpretty/syntax.rb', line 4 def self.highlight(code, ="") pygments_available? ? pygmentize(code, ) : code end |