From c5bb91693261ec1e229fb43cbf7d585b769dd3e1 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Sun, 24 Nov 2019 19:19:18 +0100 Subject: add method with uncovered lines --- lib/coderay.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/coderay.rb') 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: # -- cgit v1.2.1