Sha256: cc4d07182c2dde5c286d2b19309d7fa827b9d9b8f103445de57ed911b81ce293
Contents?: true
Size: 494 Bytes
Versions: 51
Compression:
Stored size: 494 Bytes
Contents
# Copyright (c) 2013 National ICT Australia Limited (NICTA). # This software may be used and distributed solely under the terms of the MIT license (License). # You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT. # By downloading or using this software you accept the terms and the liability disclaimer in the License. class Hash def joined?(*group_ids) self[:membership] && group_ids.any? { |g_id| self[:membership].include?(g_id) } end end
Version data entries
51 entries across 51 versions & 1 rubygems