How about this:
This will be the equivalent of jruby’s only_every.
Implementing debounce_for is trickier because it involves delaying the execution of the rule. I can think of two ways of implementing it, but not ideal, so I’m still thinking about it.