lib/twitter_ebooks/bot.rb
def delay(range=@delay_range, &b)
      time = range.to_a.sample unless range.is_a? Integer
      sleep time
      b.call
    end
# Delay an action for a variable period of time
# @param range [Range, Integer] range of seconds to choose for delay
Delay an action for a variable period of time
Delay an action for a variable period of time
def delay(range=@delay_range, &b)
      time = range.to_a.sample unless range.is_a? Integer
      sleep time
      b.call
    end
def delay ( range = @delay_range , & b ) time = range . to_a . sample unless range . is_a? Integer sleep time b . call end
Delay an action for a variable period of time
Delay an action for a variable period of time
range
range of seconds to choose for delay
range of seconds to choose for delay
b