Sha256: 58646afc26b894917a7dc0afffa8a88e685b68e96335d692d52c1dc4a5913f74

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 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; end
        def default?; false; end
        def apply_filter(expr, _name, _value); expr; end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
tdiary-5.0.9 vendor/bundle/gems/capybara-3.2.1/lib/capybara/selector/filters/expression_filter.rb
capybara-3.2.1 lib/capybara/selector/filters/expression_filter.rb
capybara-3.2.0 lib/capybara/selector/filters/expression_filter.rb