# File lib/girl_friday/actor.rb, line 465 def action_for(value) pair = @pairs.find { |pattern, action| pattern === value } pair ? pair.last : nil end
# File lib/girl_friday/actor.rb, line 454 def after(seconds, &action) raise ArgumentError, "no block given" unless action seconds = seconds.to_f if !@timeout or seconds < @timeout @timeout = seconds @timeout_action = action end self end
Generated with the Darkfish Rdoc Generator 2.