Sha256: 066734b4af5aab052bf9a5c42bbb691c891c571c8ad6474ca886d2264a8fbbc7
Contents?: true
Size: 260 Bytes
Versions: 21
Compression:
Stored size: 260 Bytes
Contents
class Agilibox::PhoneNumberSanitizer attr_reader :phone_number def initialize(phone_number) @phone_number = phone_number end def call phone_number.to_s.gsub(/[^0-9+]+/, "").presence end def self.call(*args) new(*args).call end end
Version data entries
21 entries across 21 versions & 1 rubygems