class EacRubyUtils::ActsAsImmutable::SetAccessor

def immutable_value_set_assert(value)

Returns:
  • (Set) -

Parameters:
  • value (Object) --
def immutable_value_set_assert(value)
  return value if value.is_a?(::Set)
  return value.to_set if value.respond_to?(:to_set)
  ::Set.new(value)
end