Set tick to a specific value

tick_set  value (number)

Set the default tick to the specified value. If a key is referenced, set that tick to value instead. Next call to look will return value.

Introduced in v2.6

Examples

# Example 1

tick_set 40
  puts look  



# set default tick to 40
#=> 40



# Example 2

tick_set :foo, 40
  puts look(:foo)  
  puts look        



# set tick :foo to 40
#=> 40 (tick :foo is now 40)
#=> 0 (default tick is unaffected)