mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
change pattern matching [druby-ja:98]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e022b74520
commit
dae0bfcf37
3 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue