From 70690604e7ea6fd6b89c256a52d65a308ad0fe77 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 17 Oct 2006 09:44:47 +0000 Subject: Moved demos to sample/. --- demo/demo_count.rb | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 demo/demo_count.rb (limited to 'demo/demo_count.rb') diff --git a/demo/demo_count.rb b/demo/demo_count.rb deleted file mode 100644 index bcb7c2d..0000000 --- a/demo/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. -- cgit v1.2.1