15 lines
245 B
Ruby
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
|