Sha256: c9168a6797bd4f456488fe65b9f3b131415210dac0de0b9b2a04ab95f594705c

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

require_relative 'compare_assay'

# Compare assertion is used to test a comparision
# made by `#>`.
#
class MoreAssay < CompareAssay

  register :>, :more_than

  #
  # Check assertion using `#>` method call.
  #
  def self.pass?(subject, criterion)
    subject > criterion
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assay-0.4.1 lib/assay/more_assay.rb
assay-0.4.0 lib/assay/more_assay.rb