Method: XArray#include?
- Defined in:
- lib/primitive_wrapper.rb
#include?(*list) ⇒ Boolean
replace with list of stuff
1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 |
# File 'lib/primitive_wrapper.rb', line 1269 def include?(*list) # replace with list of stuff if list.count==1 if list.first.respond_to? :each list = list.first end end list.each do |item| return false unless @value.include? item end true end |