Sha256: c12560a56404e278587097314b51cf607212a1e8b860ffc2085bb6e86e440321
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
require 'vpim/icalendar' require 'open-uri' class Convert def initialize(io) @io = io end def each @io.each do |line| line.gsub!("\r", "\\n") yield line end end end io = open("http://upcoming.org/calendar/metro/45") cvt = Convert.new(io) cal = Vpim::Icalendar.decode(cvt).first cal.components do |c| puts "-------------------------------------------------" puts c.description end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
thoughtafter-vpim-0.7.0.1 | ex_fmt_convert.rb |
scashin133-vpim-9.4.0 | ex_fmt_convert.rb |