class EventDb::EventCursor

Public Class Methods

new( events ) click to toggle source
# File lib/eventdb/calendar.rb, line 5
def initialize( events )
  @events = events
end

Public Instance Methods

each() { |event, state| ... } click to toggle source
# File lib/eventdb/calendar.rb, line 9
def each
  state = State.new
  @events.each do |event|
     state.next( event )
     yield( event, state )
  end
end