class Nite::Owl::After
Public Class Methods
new(delay)
click to toggle source
Calls superclass method
Nite::Owl::PredicateAction::new
# File lib/nite/owl/niteowl.rb, line 367 def initialize(delay) super() @delay = delay.to_f @time = nil end
Public Instance Methods
predicate?(name,flags)
click to toggle source
# File lib/nite/owl/niteowl.rb, line 372 def predicate?(name,flags) Time.now.to_f >= @time+@delay end