Method: CodeRay::Duo#encode

Defined in:
lib/coderay/duo.rb

#encode(code, options = {}) ⇒ Object Also known as: highlight, call

Tokenize and highlight the code using scanner and encoder.



64
65
66
67
# File 'lib/coderay/duo.rb', line 64

def encode code, options = {}
  options = @options.merge options
  encoder.encode(code, @lang, options)
end