Commit bdeef827 authored by Jun Hiroe's avatar Jun Hiroe

Refactor Enumerable#include?

parent a21088b2
......@@ -176,14 +176,12 @@ module Enumerable
#
# ISO 15.3.2.2.10
def include?(obj)
st = false
self.each{|val|
if val == obj
st = true
break
return true
end
}
st
false
end
##
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment