# -*- coding: utf-8 -*- module ConsadoleAggregator::Live Timeline = Struct.new(:time, :post) class Timeline def self.parse line return nil if line.nil? || line.empty? || line =~ /(<前半>)|(<後半>)/ Timeline.new(*line.split(' ')) end def to_s ('%s %s'%[time, post]).squeeze.rstrip end end end