diff options
-rw-r--r-- | lib/coderay/encoder.rb | 2 | ||||
-rw-r--r-- | test/scanners/coderay_suite.rb | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/test/scanners/coderay_suite.rb b/test/scanners/coderay_suite.rb index 80b6119..8425cef 100644 --- a/test/scanners/coderay_suite.rb +++ b/test/scanners/coderay_suite.rb @@ -15,7 +15,7 @@ class Array end self end -end +end unless [].respond_to? :shuffle! module CodeRay |