/test/interactive.rb

http://github.com/publicdisplay/icalendar · Ruby · 17 lines · 6 code · 6 blank · 5 comment · 0 complexity · 5511faa230bef237df159cc13380a768 MD5 · raw file

  1. #!/usr/bin/env ruby
  2. # NOTE: you must have installed ruby-breakpoint in order to use this script.
  3. # Grab it using gem with "gem install ruby-breakpoint --remote" or download
  4. # from the website (http://ruby-breakpoint.rubyforge.org/) then run setup.rb
  5. $:.unshift(File.dirname(__FILE__) + '/../lib')
  6. require 'rubygems'
  7. require 'breakpoint'
  8. require 'icalendar'
  9. cal = Icalendar::Parser.new(File.new("life.ics")).parse
  10. #cal = Icalendar::Calendar.new
  11. breakpoint