Sha256: 3568ee641a00ff817a00e32d32520d1428651cfdf6ccb198b444ae411f9edb4e

Contents?: true

Size: 374 Bytes

Versions: 73

Compression:

Stored size: 374 Bytes

Contents

module Evertils
  module Helper
    class Results
      attr_reader :bucket
      def initialize
        @bucket = []
        @bucket
      end

      # Add a result for processing
      def add(result)
        @bucket.push(result.to_bool)
        result.to_bool
      end

      def should_eval_to(pass_value)
        @bucket.all? == pass_value
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
evertils-1.0.6 lib/evertils/helpers/results.rb
evertils-1.0.5 lib/evertils/helpers/results.rb
evertils-1.0.4 lib/evertils/helpers/results.rb
evertils-1.0.3 lib/evertils/helpers/results.rb
evertils-1.0.2 lib/evertils/helpers/results.rb
evertils-1.0.1 lib/evertils/helpers/results.rb
evertils-1.0.0 lib/evertils/helpers/results.rb
evertils-0.4.0 lib/evertils/helpers/results.rb
evertils-0.3.27 lib/evertils/helpers/results.rb
evertils-0.3.26 lib/evertils/helpers/results.rb
evertils-0.3.25 lib/evertils/helpers/results.rb
evertils-0.3.24 lib/evertils/helpers/results.rb
evertils-0.3.23 lib/evertils/helpers/results.rb
evertils-0.3.22 lib/evertils/helpers/results.rb
evertils-0.3.21 lib/evertils/helpers/results.rb
evertils-0.3.20 lib/evertils/helpers/results.rb
evertils-0.3.19 lib/evertils/helpers/results.rb
evertils-0.3.18 lib/evertils/helpers/results.rb
evertils-0.3.17 lib/evertils/helpers/results.rb
evertils-0.3.16 lib/evertils/helpers/results.rb