class Capybara::RSpecMatchers::Compound::CapybaraEvaluator

Public Class Methods

new(actual) click to toggle source
# File lib/capybara/rspec/compound.rb, line 22
def initialize(actual)
  @actual = actual
  @match_results = Hash.new { |hsh, matcher| hsh[matcher] = matcher.matches?(@actual) }
end

Public Instance Methods

matcher_matches?(matcher) click to toggle source
# File lib/capybara/rspec/compound.rb, line 27
def matcher_matches?(matcher)
  @match_results[matcher]
end
reset() click to toggle source
# File lib/capybara/rspec/compound.rb, line 31
def reset
  @match_results.clear
end