class CodeRay::Tokens

def method_missing meth, options = {}

is used to highlight the tokens.
For example, if you call +tokens.html+, the HTML encoder

Redirects unknown methods to encoder calls.
def method_missing meth, options = {}
  encode meth, options
rescue PluginHost::PluginNotFound
  super
end