Sha256: c53c3e665add9f75c4a8bb9a2fd7275c476df97b1bd6288866fcddb73ed43100

Contents?: true

Size: 282 Bytes

Versions: 110

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

class Capybara::RackTest::CSSHandlers < BasicObject
  include ::Kernel

  def disabled(list)
    list.find_all { |node| node.has_attribute? 'disabled' }
  end

  def enabled(list)
    list.find_all { |node| !node.has_attribute? 'disabled' }
  end
end

Version data entries

110 entries across 96 versions & 5 rubygems

Version Path
capybara-3.32.2 lib/capybara/rack_test/css_handlers.rb
capybara-3.32.1 lib/capybara/rack_test/css_handlers.rb
capybara-3.32.0 lib/capybara/rack_test/css_handlers.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/capybara-3.31.0/lib/capybara/rack_test/css_handlers.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/rack_test/css_handlers.rb
capybara-3.31.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.30.0 lib/capybara/rack_test/css_handlers.rb
tdiary-5.1.0 vendor/bundle/gems/capybara-3.29.0/lib/capybara/rack_test/css_handlers.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/rack_test/css_handlers.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/rack_test/css_handlers.rb
capybara-3.29.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.28.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.27.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.26.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.25.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.24.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.23.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.22.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.21.0 lib/capybara/rack_test/css_handlers.rb
capybara-3.20.2 lib/capybara/rack_test/css_handlers.rb