Reset tick to 0
tick_reset
Reset default tick to 0. If a key
is referenced, set that tick to 0 instead. Same as calling tick_set(0)
Introduced in v2.6
Examples
# Example 1 |
tick
tick
tick
puts look
tick_set 0
puts look
|
# increment default tick a few times
#=> 2 (default tick is now 2)
# default tick is now 0
#=> 0 (default tick is now 0
|
# Example 2 |
tick :foo
tick :foo
tick :foo
puts look(:foo)
tick_set 0
puts look(:foo)
tick_set :foo, 0
puts look(:foo)
|
# increment tick :foo a few times
#=> 2 (tick :foo is now 2)
# default tick is now 0
#=> 2 (tick :foo is still 2)
# reset tick :foo
#=> 0 (tick :foo is now 0)
|