Manuel Bustillo 29d9d21916
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 44s
Add copyright notice / copyright_notice (pull_request) Successful in 59s
Run unit tests / unit_tests (pull_request) Successful in 1m33s
Use sets instead of arrays to represent tables
2024-11-10 17:30:01 +01:00

19 lines
315 B
Ruby

# Copyright (C) 2024 Manuel Bustillo
module Tables
class Table < Set
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