module Rabbit::DirtyCount
Constants
- TOO_DIRTY
Public Instance Methods
Source
# File lib/rabbit/utils.rb, line 446 def dirty(factor=0.1) @dirty_count += TOO_DIRTY * factor dirtied if dirty? end
Source
# File lib/rabbit/utils.rb, line 459 def dirty_count_clean @dirty_count = 0 end
Private Instance Methods
Source
# File lib/rabbit/utils.rb, line 468 def check_dirty if dirty? dirtied else yield end end