Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- omf_ec/lib/omf_ec/core_ext/hash.rb
Overview
Copyright © 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 opensource.org/licenses/MIT. By downloading or using this software you accept the terms and the liability disclaimer in the License.
Instance Method Summary (collapse)
Instance Method Details
- (Boolean) joined?(*group_ids)
7 8 9 |
# File 'omf_ec/lib/omf_ec/core_ext/hash.rb', line 7 def joined?(*group_ids) self[:membership] && group_ids.any? { |g_id| self[:membership].include?(g_id) } end |