diff options
Diffstat (limited to 'lib/coderay.rb')
-rw-r--r-- | lib/coderay.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb index d2d7331..9779ff5 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -158,6 +158,7 @@ module CodeRay # # See also demo/demo_simple. def scan code, lang, options = {}, &block + # FIXME: return a proxy for direct-stream encoding scanner = Scanners[lang].new code, options, &block scanner.tokenize end @@ -187,7 +188,7 @@ module CodeRay # encodes it with the Encoder for +format+. # +options+ will be passed to the Encoder. # - # See CodeRay::Encoder.encode + # See CodeRay::Encoder.encode. def encode code, lang, format, options = {} encoder(format, options).encode code, lang, options end |