Sha256: 2461d0caa4c30af5ff9fdb6df51e7472c48d3fa31562b8e92b85245141fbdb8c

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

module VCardio
  module Parser
    #
    # @private
    #
    class GroupParser
      def self.call(part)
        separator_index = part.index('.')

        if separator_index
          group = part[0, separator_index] if separator_index

          VCardio::Validator::GroupValidator.call(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/parser/group_parser.rb
vcardio-0.1.0 lib/vcardio/parser/group_parser.rb