Class: VCardio::Parser::LineParser
- Inherits:
-
Object
- Object
- VCardio::Parser::LineParser
- Defined in:
- lib/vcardio/parser/line_parser.rb
Class Method Summary collapse
Class Method Details
.call(content_line) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/vcardio/parser/line_parser.rb', line 7 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 |