class Capybara::Selector::Filters::Base

def default

def default
  @options[:default]
end

def default?

def default?
  @options.key?(:default)
end

def initialize(name, block, **options)

def initialize(name, block, **options)
  @name = name
  @block = block
  @options = options
  @options[:valid_values] = [true, false] if options[:boolean]
end

def skip?(value)

def skip?(value)
  @options.key?(:skip_if) && value == @options[:skip_if]
end

def valid_value?(value)

def valid_value?(value)
  !@options.key?(:valid_values) || Array(@options[:valid_values]).include?(value)
end