summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 19:19:18 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 19:19:18 +0100
commitc5bb91693261ec1e229fb43cbf7d585b769dd3e1 (patch)
tree9875727dc314963b6308066a264296b678b92c21
parent91c40d20ade67ee426a256c8ce5863ca904405f7 (diff)
downloadcoderay-c5bb91693261ec1e229fb43cbf7d585b769dd3e1.tar.gz
add method with uncovered lines
-rw-r--r--lib/coderay.rb4
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:
#