Manuel Bustillo f3b70f5a31
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 33s
Add copyright notice / copyright_notice (pull_request) Successful in 47s
Run unit tests / unit_tests (pull_request) Successful in 1m18s
Apply a penalty if table sizes are not honored
2024-11-10 11:22:51 +01:00

19 lines
317 B
Ruby

# Copyright (C) 2024 Manuel Bustillo
module Tables
class Table < Array
attr_accessor :discomfort, :min_per_table, :max_per_table
def initialize(*args)
super
reset
end
def reset
original_discomfort = discomfort
@discomfort = nil
original_discomfort
end
end
end