123456789_123456789_123456789_123456789_123456789_

Class: Capybara::Queries::MatchQuery Private

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Capybara::Queries::SelectorQuery
Defined in: lib/capybara/queries/match_query.rb

Constant Summary

BaseQuery - Inherited

COUNT_KEYS

SelectorQuery - Inherited

SPATIAL_KEYS, VALID_KEYS, VALID_MATCH

Class Method Summary

SelectorQuery - Inherited

BaseQuery - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from Capybara::Queries::SelectorQuery

Instance Method Details

#assert_valid_keys (private)

[ GitHub ]

  
# File 'lib/capybara/queries/match_query.rb', line 12

def assert_valid_keys
  invalid_options = @options.keys & COUNT_KEYS
  unless invalid_options.empty?
    raise ArgumentError, "Match queries don't support quantity options. Invalid keys - #{invalid_options.join(', ')}"
  end

  super
end

#valid_keys (private)

[ GitHub ]

  
# File 'lib/capybara/queries/match_query.rb', line 21

def valid_keys
  super - COUNT_KEYS
end

#visible

[ GitHub ]

  
# File 'lib/capybara/queries/match_query.rb', line 6

def visible
  options.key?(:visible) ? super : :all
end