class TimeScheduler::EventItem
Attributes
ident[R]
queue[R]
time[R]
Public Class Methods
new( time, queue, ident )
click to toggle source
# File lib/time_scheduler/event.rb, line 11 def initialize( time, queue, ident ) @time = time @queue = queue @ident = ident end
Public Instance Methods
<=>( other )
click to toggle source
# File lib/time_scheduler/event.rb, line 17 def <=>( other ) return nil unless other.is_a?( EventItem ) self.time <=> other.time end