Sha256: 0604b04be38f0139d8924af31ba818d1bb420eabc990b1c04acb3b97fcaba9cb

Contents?: true

Size: 533 Bytes

Versions: 18

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

require 'capybara/selector/filters/base'

module Capybara
  class Selector
    module Filters
      class ExpressionFilter < Base
        def apply_filter(expr, name, value)
          apply(expr, name, value, expr)
        end
      end

      class IdentityExpressionFilter < ExpressionFilter
        def initialize(name); super(name, nil, nil); end
        def default?; false; end
        def matcher?; false; end
        def apply_filter(expr, _name, _value); expr; end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
tdiary-5.0.11 vendor/bundle/gems/capybara-3.6.0/lib/capybara/selector/filters/expression_filter.rb
capybara-3.10.1 lib/capybara/selector/filters/expression_filter.rb
capybara-3.10.0 lib/capybara/selector/filters/expression_filter.rb
capybara-3.9.0 lib/capybara/selector/filters/expression_filter.rb
capybara-3.8.2 lib/capybara/selector/filters/expression_filter.rb
capybara-3.8.1 lib/capybara/selector/filters/expression_filter.rb
capybara-3.8.0 lib/capybara/selector/filters/expression_filter.rb
capybara-3.7.2 lib/capybara/selector/filters/expression_filter.rb
capybara-3.7.1 lib/capybara/selector/filters/expression_filter.rb
capybara-3.7.0 lib/capybara/selector/filters/expression_filter.rb
capybara-3.6.0 lib/capybara/selector/filters/expression_filter.rb
capybara-3.5.1 lib/capybara/selector/filters/expression_filter.rb
capybara-3.5.0 lib/capybara/selector/filters/expression_filter.rb
capybara-3.4.2 lib/capybara/selector/filters/expression_filter.rb
capybara-3.4.1 lib/capybara/selector/filters/expression_filter.rb
capybara-3.4.0 lib/capybara/selector/filters/expression_filter.rb
capybara-3.3.1 lib/capybara/selector/filters/expression_filter.rb
capybara-3.3.0 lib/capybara/selector/filters/expression_filter.rb