class Array
Public Instance Methods
include?(*list)
click to toggle source
# File lib/array.rb, line 5 def include?(*list) list.count == 1 ? super_include?(list.first) : ( self & list ).count == list.count end
Also aliased as: super_include?
include_one?( *list )
click to toggle source
# File lib/array.rb, line 9 def include_one?( *list ) (self & list).count > 0 end
symbolize_hashes()
click to toggle source
# File lib/array.rb, line 13 def symbolize_hashes z = [] self.each do |i| z << case i when Array then i.symbolize_hashes when Hash then i.keys_to_symbols else Marshal.load(Marshal.dump(i)) end end return z end