Module: Nokogiri::More::NodeQuestMethods
- Defined in:
- lib/nokogiri/more.rb
Instance Method Summary collapse
- #at?(selector) ⇒ Boolean
- #at_css?(selector) ⇒ Boolean
- #at_xpath?(selector) ⇒ Boolean
- #find_child?(selector) ⇒ Boolean
Instance Method Details
#at?(selector) ⇒ Boolean
52 53 54 |
# File 'lib/nokogiri/more.rb', line 52 def at?(selector) at(selector) || NodeNaught.new end |
#at_css?(selector) ⇒ Boolean
56 57 58 |
# File 'lib/nokogiri/more.rb', line 56 def at_css?(selector) at_css(selector) || NodeNaught.new end |
#at_xpath?(selector) ⇒ Boolean
60 61 62 |
# File 'lib/nokogiri/more.rb', line 60 def at_xpath?(selector) at_xpath(selector) || NodeNaught.new end |
#find_child?(selector) ⇒ Boolean
64 65 66 |
# File 'lib/nokogiri/more.rb', line 64 def find_child?(selector) find_child(selector) || NodeNaught.new end |