diff options
Diffstat (limited to 'lib/coderay.rb')
-rw-r--r-- | lib/coderay.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb index ef2574a..ad0bb5e 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -170,27 +170,6 @@ module CodeRay scan file, lang, options = {}, &block end - # Scan the +code+ (a string) with the scanner for +lang+. - # - # Calls scan. - # - # See CodeRay.scan. - def scan_stream code, lang, options = {}, &block - options[:stream] = true - scan code, lang, options, &block - end - - # Encode a string in Streaming mode. - # - # This starts scanning +code+ with the the Scanner for +lang+ - # while encodes the output with the Encoder for +format+. - # +options+ will be passed to the Encoder. - # - # See CodeRay::Encoder.encode_stream - def encode_stream code, lang, format, options = {} - encoder(format, options).encode_stream code, lang, options - end - # Encode a string. # # This scans +code+ with the the Scanner for +lang+ and then @@ -286,12 +265,6 @@ module CodeRay end - # A dummy module that is included by subclasses of - # CodeRay::Scanners::Scanner and CodeRay::Encoders::Encoder - # to show that they are able to handle streams. - module Streamable - end - end # Run a test script. |