Module: Nokogiri::More::NodeQuestMethods

Defined in:
lib/nokogiri/more.rb

Instance Method Summary collapse

Instance Method Details

#at?(selector) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/nokogiri/more.rb', line 52

def at?(selector)
  at(selector) || NodeNaught.new
end

#at_css?(selector) ⇒ Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


64
65
66
# File 'lib/nokogiri/more.rb', line 64

def find_child?(selector)
  find_child(selector) || NodeNaught.new
end