Sha256: 068bab1f6f558c109019c4b1058d1e8b855ab194df154dadbd44109a7b27ad00
Contents?: true
Size: 361 Bytes
Versions: 14
Compression:
Stored size: 361 Bytes
Contents
# frozen_string_literal: true module LittleWeasel module Modules # This module provides methods to validate a region. module RegionValidatable module_function def validate_region(region:) raise ArgumentError, "Argument region '#{region}' is not a Symbol." unless region.blank? || region.is_a?(Symbol) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems