lib/cyberarm_engine/stats.rb in cyberarm_engine-0.19.0 vs lib/cyberarm_engine/stats.rb in cyberarm_engine-0.19.1

- old
+ new

@@ -1,21 +1,21 @@ -module CyberarmEngine - class Stats - @@hash = { - gui_recalculations_last_frame: 0 - } - - def self.get(key) - @@hash.dig(key) - end - - def self.increment(key, n) - @@hash[key] += n - end - - def self.clear - @@hash.each do |key, _value| - @@hash[key] = 0 - end - end - end -end +module CyberarmEngine + class Stats + @@hash = { + gui_recalculations_last_frame: 0 + } + + def self.get(key) + @@hash.dig(key) + end + + def self.increment(key, n) + @@hash[key] += n + end + + def self.clear + @@hash.each do |key, _value| + @@hash[key] = 0 + end + end + end +end