summaryrefslogtreecommitdiff
path: root/sample/demo_count.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-10-17 10:15:34 +0000
committermurphy <murphy@rubychan.de>2006-10-17 10:15:34 +0000
commitfb81d875f3b72de27c19ce1751a29a2398a45c6a (patch)
treec62b126efb19bf07a1215cfdefbbc252d54c4951 /sample/demo_count.rb
parentecddd306d8719993266de43311b36c888057b32a (diff)
downloadcoderay-fb81d875f3b72de27c19ce1751a29a2398a45c6a.tar.gz
Go away, demos! >:-(
Diffstat (limited to 'sample/demo_count.rb')
-rw-r--r--sample/demo_count.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/sample/demo_count.rb b/sample/demo_count.rb
deleted file mode 100644
index bcb7c2d..0000000
--- a/sample/demo_count.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-require 'coderay'
-
-stats = CodeRay.encoder(:statistic)
-stats.encode("puts 17 + 4\n", :ruby)
-
-puts '%d out of %d tokens have the kind :integer.' % [
- stats.type_stats[:integer].count,
- stats.real_token_count
-]
-#-> 2 out of 4 tokens have the kind :integer.