You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: enumerable.rb
    path of file: ./repos/natalie/src
    
    the code of the file until where you have to start completion: module Enumerable
  def all?(pattern = nil)
    gather = ->(item) { item.size <= 1 ? item.first : item 
    
  def none?(pattern = nil)
    gather = ->(item) { item.size <= 1 ? item.first : item }
    if pattern
      warn('warning: given block not used') if block_given?
      each { |*item| return false if pattern === gather.(item) }
    elsif block_given?
      each { |*item| return false if yield(*item) }
    else
      each { |*item| return false if gather.(item) }
    end