2017-07-09 13:49:52 -04:00
|
|
|
# frozen_string_literal: true
|
2017-07-10 09:40:03 -04:00
|
|
|
|
2014-08-29 04:28:07 -04:00
|
|
|
module JobBuffer
|
|
|
|
class << self
|
|
|
|
def clear
|
|
|
|
values.clear
|
|
|
|
end
|
|
|
|
|
|
|
|
def add(value)
|
|
|
|
values << value
|
|
|
|
end
|
|
|
|
|
|
|
|
def values
|
|
|
|
@values ||= []
|
|
|
|
end
|
|
|
|
|
|
|
|
def last_value
|
|
|
|
values.last
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|