Sha256: 3e5165f5387e8c2908c0aa2dac0623abeed82d776cef015264297f35e9d06217
Contents?: true
Size: 463 Bytes
Versions: 26
Compression:
Stored size: 463 Bytes
Contents
# frozen_string_literal: true # tick allow you to automatise any action counting # it can be added into any new created particle ex: here a dummy new({ particle: :dummy }) do |_p| tick(:dummy ) end new({ particle: :dummy2 }) do |_p| tick(:dummy2 ) end a=box a.dummy(:hi) puts a.tick[:dummy] a.dummy(:ho) puts a.tick[:dummy] a.dummy2(:ho) puts a.tick[:dummy2] c=circle({left: 99}) c.touch(true) do c.tick(:my_counter) puts c.tick[:my_counter] end
Version data entries
26 entries across 26 versions & 1 rubygems