Sha256: 423d9283dbf297b17a26cf0cbde51357ef4154bd5b7429ae54965b1b48711876

Contents?: true

Size: 495 Bytes

Versions: 7

Compression:

Stored size: 495 Bytes

Contents

#encoding: utf-8

# the main module
module TheArrayComparator
  # the check 
  class Check
    extend Forwardable

    # Delegates success? to check
    def_delegator :@check, :success?

    # @!attribute [r] sample
    #   the sample of the check
    attr_reader :sample

    # Creates new check
    def initialize(strategy_klass,sample)
      @check = strategy_klass.new(sample)
      @sample = sample
    end

    # Checks for success
    def success?
      @check.success?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
the_array_comparator-0.5.0 lib/the_array_comparator/check.rb
the_array_comparator-0.4.0 lib/the_array_comparator/check.rb
the_array_comparator-0.3.4 lib/the_array_comparator/check.rb
the_array_comparator-0.3.1 lib/the_array_comparator/check.rb
the_array_comparator-0.3.0 lib/the_array_comparator/check.rb
the_array_comparator-0.2.0 lib/the_array_comparator/check.rb
the_array_comparator-0.1.1 lib/the_array_comparator/check.rb