class Evertils::Helper::Results

Attributes

bucket[R]

Public Class Methods

new() click to toggle source
# File lib/evertils/helpers/results.rb, line 5
def initialize
  @bucket = []
  @bucket
end

Public Instance Methods

add(result) click to toggle source

Add a result for processing

# File lib/evertils/helpers/results.rb, line 11
def add(result)
  @bucket.push(result.to_bool)
  result.to_bool
end
should_eval_to(pass_value) click to toggle source
# File lib/evertils/helpers/results.rb, line 16
def should_eval_to(pass_value)
  @bucket.all? == pass_value
end