diff options
Diffstat (limited to 'lib/coderay/encoder.rb')
-rw-r--r-- | lib/coderay/encoder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |