class Capybara::Selector

def match(&block)

Returns:
  • (#call) - The block that will be used to detect selector match

Other tags:
    Yieldreturn: - Whether this selector matches the locator string

Other tags:
    Yieldparam: , - locator The locator string used to determin if it matches the selector

Other tags:
    Yield: - This block takes the passed in locator string and returns whether or not it matches the selector
def match(&block)
  @match = block if block
  @match
end