Method: CodeRay::Tokens#method_missing

Defined in:
lib/coderay/tokens.rb

#method_missing(meth, options = {}) ⇒ Object

Redirects unknown methods to encoder calls.

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



70
71
72
73
74
# File 'lib/coderay/tokens.rb', line 70

def method_missing meth, options = {}
  encode meth, options
rescue PluginHost::PluginNotFound
  super
end