Method: Numeric#tick

Defined in:
lib/core_ext/numeric.rb

#tickObject Also known as: ticks

Provides the suffix ‘tick’ which will simply express the number with a vanity suffix.

Examples:

Expressing an animation that takes place over 60 game ticks


class ExampleScene < Metro::Scene
  draws :title

  animate :title, to: { x: 320, y: 444 }, interval: 60.ticks
end


53
54
55
# File 'lib/core_ext/numeric.rb', line 53

def tick
  self
end