diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2019-11-24 19:19:18 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2019-11-24 19:19:18 +0100 |
commit | c5bb91693261ec1e229fb43cbf7d585b769dd3e1 (patch) | |
tree | 9875727dc314963b6308066a264296b678b92c21 /lib/coderay.rb | |
parent | 91c40d20ade67ee426a256c8ce5863ca904405f7 (diff) | |
download | coderay-c5bb91693261ec1e229fb43cbf7d585b769dd3e1.tar.gz |
add method with uncovered lines
Diffstat (limited to 'lib/coderay.rb')
-rw-r--r-- | lib/coderay.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb index 2092542..72a36fe 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -197,6 +197,10 @@ module CodeRay encoder(format, options).encode code, lang, options end + def encode2 code, lang, format, options = {} + encoder(format, options).encode code, lang, options + end + # Encode pre-scanned Tokens. # Use this together with CodeRay.scan: # |