Skip to content

Instantly share code, notes, and snippets.

@brianjlandau
Created January 21, 2009 20:44
Show Gist options
  • Save brianjlandau/50174 to your computer and use it in GitHub Desktop.
Save brianjlandau/50174 to your computer and use it in GitHub Desktop.
module Enumerable
def include_any?(obj)
if obj.respond_to?(:include?)
self.any? {|item| obj.include?(item)}
else
false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment