summaryrefslogtreecommitdiff
path: root/lib/coderay/encoder.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-10-17 08:51:13 +0000
committermurphy <murphy@rubychan.de>2006-10-17 08:51:13 +0000
commit5af1cca0499334b7bc29778844c28a5c8b7c05b8 (patch)
treea1403dbfffa78f7e51e226098f455b4f1d59c1f9 /lib/coderay/encoder.rb
parentf5768c09019b303e82b7b7905b137b0e1df3823c (diff)
downloadcoderay-5af1cca0499334b7bc29778844c28a5c8b7c05b8.tar.gz
Made CodeRay ready Ruby 1.9:
- tests failed because :symbol.is_a? String. - ...and Array#shuffle! is already built into Ruby 1.9
Diffstat (limited to 'lib/coderay/encoder.rb')
-rw-r--r--lib/coderay/encoder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoder.rb b/lib/coderay/encoder.rb
index 221cd58..f72e2f1 100644
--- a/lib/coderay/encoder.rb
+++ b/lib/coderay/encoder.rb
@@ -130,7 +130,7 @@ module CodeRay
# By default, it calls text_token or block_token, depending on
# whether +text+ is a String.
def token text, kind
- if text.is_a? ::String
+ if text.instance_of? ::String # Ruby 1.9: :open.is_a? String
text_token text, kind
elsif text.is_a? ::Symbol
block_token text, kind