Class: VCardio::Parser::ValueParser

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

Class Method Summary collapse

Class Method Details

.call(part) ⇒ Object



7
8
9
10
# File 'lib/vcardio/parser/value_parser.rb', line 7

def self.call(part)
  value = part.split(/;(?<!\\;)/, -1)
  value.length > 1 ? value : value[0]
end