summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-13 14:06:50 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-13 14:06:50 +0000
commitdae0bfcf376fa0fb32fdde10587a8fb255cf1d00 (patch)
treec32d9ab64c2dee4abafdbd71ddb8eb4206aff9f3 /lib
parente022b74520978ad11e4db30aece8403099199e94 (diff)
change pattern matching [druby-ja:98]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rinda/rinda.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rinda/rinda.rb b/lib/rinda/rinda.rb
index a977d5c..37af342 100644
--- a/lib/rinda/rinda.rb
+++ b/lib/rinda/rinda.rb
@@ -105,7 +105,9 @@ module Rinda
return false
end
next if v.nil?
- return false unless (v === it)
+ next if v == it
+ next if v === it
+ return false
end
return true
end