From 5122b3d9eb3d9abfaf68b89442ce514c85f4d143 Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 22 Nov 2007 15:27:01 +0000 Subject: - Ruby 1.9 fixes - rake commands for jruby and rubinius - absolutized CodeRay::Tokens::ClassOfKind --- lib/coderay/encoder.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/coderay/encoder.rb') diff --git a/lib/coderay/encoder.rb b/lib/coderay/encoder.rb index 8e67172..e543c8c 100644 --- a/lib/coderay/encoder.rb +++ b/lib/coderay/encoder.rb @@ -168,7 +168,8 @@ module CodeRay # The already created +tokens+ object must be used; it can be a # TokenStream or a Tokens object. def compile tokens, options - tokens.each(&self) + tokens.each { |text, kind| token text, kind } # FIXME for Ruby 1.9? + #tokens.each(&self) end end -- cgit v1.2.1