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-2.3.4 lib/evertils/helpers/results.rb
evertils-2.3.3 lib/evertils/helpers/results.rb
evertils-2.3.2 lib/evertils/helpers/results.rb
evertils-2.3.1 lib/evertils/helpers/results.rb
evertils-2.3.0 lib/evertils/helpers/results.rb
evertils-2.2.4 lib/evertils/helpers/results.rb
evertils-2.2.3 lib/evertils/helpers/results.rb
evertils-2.2.2 lib/evertils/helpers/results.rb
evertils-2.2.1 lib/evertils/helpers/results.rb
evertils-2.2.0 lib/evertils/helpers/results.rb
evertils-2.1.0 lib/evertils/helpers/results.rb
evertils-2.0.2 lib/evertils/helpers/results.rb
evertils-2.0.1 lib/evertils/helpers/results.rb
evertils-2.0.0 lib/evertils/helpers/results.rb
evertils-1.0.12 lib/evertils/helpers/results.rb
evertils-1.0.11 lib/evertils/helpers/results.rb
evertils-1.0.10 lib/evertils/helpers/results.rb
evertils-1.0.9 lib/evertils/helpers/results.rb
evertils-1.0.8 lib/evertils/helpers/results.rb
evertils-1.0.7 lib/evertils/helpers/results.rb