123456789_123456789_123456789_123456789_123456789_

Class: Capybara::RackTest::CSSHandlers

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, Kernel
Inherits: BasicObject
Defined in: lib/capybara/rack_test/css_handlers.rb

Instance Method Summary

Instance Method Details

#disabled(list)

[ GitHub ]

  
# File 'lib/capybara/rack_test/css_handlers.rb', line 6

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

#enabled(list)

[ GitHub ]

  
# File 'lib/capybara/rack_test/css_handlers.rb', line 10

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