Method: TimePieces::TimeSet#+

Defined in:
lib/time_pieces/time_set.rb

#+(other_ts) ⇒ Object



46
47
48
49
50
51
52
53
# File 'lib/time_pieces/time_set.rb', line 46

def +(other_ts)
  ret_ts = TimeSet.new
  ret_ts.time_durations = time_durations.map{|td| td}
  other_ts.time_durations.each do |td|
    ret_ts << td
  end
  return ret_ts
end