Sha256: b5b35bd65ab1ae3d1b192780aa27df724f185f3ca22f1c95fa1e556272d19292
Contents?: true
Size: 306 Bytes
Versions: 2
Compression:
Stored size: 306 Bytes
Contents
module WindowBlessing class EventQueue attr_accessor :queue def initialize @queue = [] end def <<(a) case a when Array then @queue += a else @queue << a end end def clear; @queue = [] end def pop_all; @queue.tap {clear} end def empty?; @queue.length == 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
window_blessing-0.0.4 | lib/window_blessing/event_queue.rb |
window_blessing-0.0.1 | lib/window_blessing/event_queue.rb |