Method: CodeRay::TokensProxy#method_missing

Defined in:
lib/coderay/tokens_proxy.rb

#method_missing(method, *args, &blk) ⇒ Object

Tries to call encode; delegates to tokens otherwise.



31
32
33
34
35
# File 'lib/coderay/tokens_proxy.rb', line 31

def method_missing method, *args, &blk
  encode method.to_sym, *args
rescue PluginHost::PluginNotFound
  tokens.send(method, *args, &blk)
end