Method: Fusuma::Plugin::Buffers::GestureBuffer#updating_events
- Defined in:
- lib/fusuma/plugin/buffers/gesture_buffer.rb
#updating_events ⇒ Object
102 103 104 105 106 107 108 109 |
# File 'lib/fusuma/plugin/buffers/gesture_buffer.rb', line 102 def updating_events cache_entry = (@cache[:updating_events] ||= CacheEntry.new(0, [])) cache_entry.checked.upto(@events.length - 1).each do |i| (cache_entry.value << @events[i]) if @events[i].record.status == "update" end cache_entry.checked = @events.length cache_entry.value end |