class All

Public Class Methods

new(matcher) click to toggle source
# File lib/itesttool/custom_matchers.rb, line 92
def initialize(matcher)
  @matcher = matcher
end

Public Instance Methods

failure_message_for_should() click to toggle source
# File lib/itesttool/custom_matchers.rb, line 106
def failure_message_for_should
  "at[#{@elem}] #{@matcher.failure_message_for_should}"
end
matches?(rows) click to toggle source
# File lib/itesttool/custom_matchers.rb, line 96
def matches?(rows)
  rows.each_with_index do |i, j|
    @elem = j
    unless @matcher.matches? i
      return false
    end
  end
  return true
end