diff options
author | murphy <murphy@rubychan.de> | 2010-05-01 02:58:17 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-05-01 02:58:17 +0000 |
commit | 7bf48ce6cf5c75a2278d6545f02781a79f53ebbb (patch) | |
tree | c0f87f427bf4d8b8a8c56ec1f722367949c8ff5b /lib/coderay.rb | |
parent | 6f1178b7fb8967dda865433ecb9e309f6cb733e1 (diff) | |
download | coderay-7bf48ce6cf5c75a2278d6545f02781a79f53ebbb.tar.gz |
Got rid of the old streaming system (see #142).
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. |