summaryrefslogtreecommitdiff
path: root/sample/tokens.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-12-31 02:56:55 +0000
committermurphy <murphy@rubychan.de>2009-12-31 02:56:55 +0000
commit46b83c9c5384a299cdc8d8c5381259b1f6d0e4aa (patch)
treee2930e60c4324f7a17f923ba68c15a6bab5d5576 /sample/tokens.rb
parent77fc494cbdbde2719875fb0d7caf2454ef298fca (diff)
downloadcoderay-46b83c9c5384a299cdc8d8c5381259b1f6d0e4aa.tar.gz
Fixed example tests.
* test:clean task also deletes .expected.html files * LinesOfCode encoder can deal with tokens that have no scanner. Tests were added for this. * JSON encoder load rubygems if necessary. * NEW :loc as an alias for :lines_of_code * NEW Scanner methods marshal_dump, marshal_load FIXED Tokens dumping (failed while trying to dump @scanner)
Diffstat (limited to 'sample/tokens.rb')
-rw-r--r--sample/tokens.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/tokens.rb b/sample/tokens.rb
index eb8d448..91b8abb 100644
--- a/sample/tokens.rb
+++ b/sample/tokens.rb
@@ -1,3 +1,3 @@
require 'coderay'
-puts CodeRay.scan("puts 3 + 4, '3 + 4'", :ruby).tokens
+p CodeRay.scan("puts 3 + 4, '3 + 4'", :ruby)