lib/gedcom/individual_record.rb
#Event looks in the Individual_record for events, as specified by the type argument, 
#returning an array of the events found. Returns nil if there were
#no events of this type in this Individual_record. 
#
#If a block is given, then yields each event to the block.
Event looks in the Individual_record for events, as specified by the type argument,
returning an array of the events found. Returns nil if there were
no events of this type in this Individual_record.

If a block is given, then yields each event to the block.
Event looks in the Individual_record for events as specified by the type argument returning an array of the events found . Returns nil if there were no events of this type in this Individual_record . If a block is given then yields each event to the block .
def event(type)
    if @event_record != nil
      events = []
      @event_record.each do |e| 
        if e.is_event?(type)
          yield e if block_given?
          events << e
        end
      end
      return events if events.length > 0
    end
    return nil
  end
def event ( type ) if @event_record != nil events = [ ] @event_record . each do | e | if e . is_event? ( type ) yield e if block_given? events << e end end return events if events . length > 0 end return nil end
Event looks in the Individual_record for events, as specified by the type argument,
returning an array of the events found.
Event looks in the Individual_record for events as specified by the type argument returning an array of the events found .
type