Sha256: 5806098adb674165463cf92ec2de65c623c6f21fdbad18a1152ff2aea573633f
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
module VCardio module Validator # # Group definition: # `1*(ALPHA / DIGIT / "-")` # # @private # class GroupValidator def self.call(group) if /\A[A-Za-z\d-]*\z/.match(group).nil? fail VCardio::Error, "Invalid group: #{group}" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vcardio-0.1.1 | lib/vcardio/validator/group_validator.rb |
vcardio-0.1.0 | lib/vcardio/validator/group_validator.rb |