Sorry but i'm not sure what you are asking. In other words you really think it's easier to do this: a = [1,2,3,4,5,6,7].to_set => #<Set: {1, 2, 3, 4, 5, 6, 7}> b = [1,2,3].to_set => #<Set: {1, 2, 3}> b.subset? a => true ...lellisga (Li Ellis Galardo)
@nobu you are right. I'll change the method to (arry1 - arry2).empty?. About the method functionally I thought of it like the subset method from Set. That's why it doesn't care about the order.lellisga (Li Ellis Galardo)
This method is like the include? method but instead of receiving a value and check if the array has it, it receives an array an check if it's part of another one. https://github.com/ruby/ruby/pull/127lellisga (Li Ellis Galardo)