Method: XArray#include_any?
- Defined in:
- lib/primitive_wrapper.rb
#include_any?(*list) ⇒ Boolean
replace with list of stuff
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'lib/primitive_wrapper.rb', line 1280 def include_any?(*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 true if @value.include? item end false end |