Method: Code.display
- Defined in:
- lib/code.rb
.display(string, language = :ruby) ⇒ Object
Syntax highlight code string
29 30 31 |
# File 'lib/code.rb', line 29 def self.display(string, language = :ruby) puts CodeRay.scan(string, language).term end |