summaryrefslogtreecommitdiff
path: root/lib/coderay/tokens.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 01:29:32 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 01:29:32 +0100
commitc7e3b31f405b3669d823bda2f0f0ec3df64fdf2d (patch)
tree5ce13ad45a912d52514015f65f10b59dd7f6ba2b /lib/coderay/tokens.rb
parent62f69934f2508a25df988157925667d5efd8549e (diff)
parent9907f88568691916e4a869bc44126de8040a274d (diff)
downloadcoderay-c7e3b31f405b3669d823bda2f0f0ec3df64fdf2d.tar.gz
Merge branch 'master' into fix-javascript-regexp
Diffstat (limited to 'lib/coderay/tokens.rb')
-rw-r--r--lib/coderay/tokens.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/coderay/tokens.rb b/lib/coderay/tokens.rb
index e7bffce..b5f78e7 100644
--- a/lib/coderay/tokens.rb
+++ b/lib/coderay/tokens.rb
@@ -39,6 +39,9 @@ module CodeRay
# You can serialize it to a JSON string and store it in a database, pass it
# around to encode it more than once, send it to other algorithms...
class Tokens < Array
+ # Remove Array#filter that is a new alias for Array#select on Ruby 2.6,
+ # for method_missing called with filter method.
+ undef_method :filter if instance_methods.include?(:filter)
# The Scanner instance that created the tokens.
attr_accessor :scanner