Manuel Bustillo 7f12fcba18
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 4m35s
Implement a cache at table level to avoid duplicate evaluations
2024-08-01 21:14:28 +02:00

15 lines
245 B
Ruby

module Tables
class Table < Array
attr_accessor :discomfort
def initialize(*args)
super
reset
end
def reset
original_discomfort = discomfort
@discomfort = nil
original_discomfort
end
end
end