Class: VCardio::Parser::GroupParser

Inherits:
Object
  • Object
show all
Defined in:
lib/vcardio/parser/group_parser.rb

Class Method Summary collapse

Class Method Details

.call(part) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/vcardio/parser/group_parser.rb', line 7

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