Module: Nokogiri::XML::BangFinders

Defined in:
lib/nokogiri_bang_finders.rb

Instance Method Summary collapse

Instance Method Details

#at!(*args) ⇒ Object

Raises:



6
7
8
# File 'lib/nokogiri_bang_finders.rb', line 6

def at!(*args)
  node = at(*args);       raise NotFound.new(args, self) if node.nil?; node
end

#at_css!(*args) ⇒ Object

Raises:



14
15
16
# File 'lib/nokogiri_bang_finders.rb', line 14

def at_css!(*args)
  node = at_css(*args);   raise NotFound.new(args, self) if node.nil?; node
end

#at_xpath!(*args) ⇒ Object

Raises:



10
11
12
# File 'lib/nokogiri_bang_finders.rb', line 10

def at_xpath!(*args)
  node = at_xpath(*args); raise NotFound.new(args, self) if node.nil?; node
end