diff options
author | murphy <murphy@rubychan.de> | 2008-08-06 18:59:08 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2008-08-06 18:59:08 +0000 |
commit | 33003edff1e6a906228aa7579740a0f8073d54e8 (patch) | |
tree | 48a00e3dc36b860901abd88ad1777486c4ae2a55 | |
parent | 11aacacf62dcaf99c4d1cb42a8227b12879c6c8b (diff) | |
download | coderay-33003edff1e6a906228aa7579740a0f8073d54e8.tar.gz |
Fixed rdoc in coderay.rb.
-rw-r--r-- | lib/coderay.rb | 3 | ||||
-rw-r--r-- | test/scanners/suite.rb | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb index 7d5bafe..1f067db 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -107,7 +107,7 @@ # # CodeRay.scan_stream:: Scan in stream mode. # -# == All-in-One Encoding +# == All-in-One Encoding # # CodeRay.encode:: Highlight a string with a given input and output format. # @@ -315,6 +315,7 @@ end # Run a test script. if $0 == __FILE__ $stderr.print 'Press key to print demo.'; gets + # Just use this file as an example of Ruby code. code = File.read(__FILE__)[/module CodeRay.*/m] print CodeRay.scan(code, :ruby).html end diff --git a/test/scanners/suite.rb b/test/scanners/suite.rb index 970492d..6ee5fa9 100644 --- a/test/scanners/suite.rb +++ b/test/scanners/suite.rb @@ -1,4 +1,4 @@ -mydir = File.dirname(__FILE__)
-require File.join(mydir, 'coderay_suite')
-
-CodeRay::TestSuite.run
+mydir = File.dirname(__FILE__) +require File.join(mydir, 'coderay_suite') + +CodeRay::TestSuite.run |