Module: Cardio::Delaying

Included in:
Cardio
Defined in:
card/lib/cardio/delaying.rb

Overview

Convenient extendable API for turning delaying on and off.

Instance Method Summary collapse

Instance Method Details

#delaying!(on = true) ⇒ Object



4
5
6
# File 'card/lib/cardio/delaying.rb', line 4

def delaying! on=true
  Cardio.config.delaying = (on == true)
end

#delaying?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'card/lib/cardio/delaying.rb', line 8

def delaying?
  Cardio.config.delaying
end