Internal array to hold all the result values
Create the Results object
# File lib/client/helper/results.rb, line 8 def initialize @bucket = [] @bucket end
Add a result for processing Params:
result
The value you want to store
# File lib/client/helper/results.rb, line 16 def add(result) @bucket.push(result) result end
Check if all values match a specified value Params:
pass_value
What all values in the array should evaluate to
# File lib/client/helper/results.rb, line 24 def should_eval_to(pass_value) @bucket.all? == pass_value end