Sha256: 5d6894b0b85031f0037ebdbcfe8ac7bd3d728ffd447d1a46f445dac2fba05ace
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
module VCardio module Parser # # @private # class LineParser def self.call(content_line) parts = content_line.split(':', 2) group = VCardio::Parser::GroupParser.call(parts[0]) name = VCardio::Parser::NameParser.call(parts[0]) params = VCardio::Parser::ParamParser.call(parts[0]) value = VCardio::Parser::ValueParser.call(parts[1]) VCardio::Property.new(group, name, params, value) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vcardio-0.1.1 | lib/vcardio/parser/line_parser.rb |
vcardio-0.1.0 | lib/vcardio/parser/line_parser.rb |