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.
80 81 82 83 84 |
# File 'lib/coderay/tokens.rb', line 80 def method_missing meth, = {} encode meth, rescue PluginHost::PluginNotFound super end |