class PIM::Services::DataModelCommons::OptionListOption

Public Instance Methods

contains_any_group(*group_names) click to toggle source
# File services.rb, line 1061
def contains_any_group *group_names
  return true if PIM.is_empty?(group_names)
  return false if PIM.is_empty?(self.groups)
  return group_names.any? { |g| PIM.includes_value?(g, groups) }
end