Class: Nokogiri::XML::Node

Inherits:
Object show all
Defined in:
lib/compactor/extensions.rb

Instance Method Summary collapse

Instance Method Details

#search!(selector) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/compactor/extensions.rb', line 20

def search!(selector)
  result = search(selector)
  if result.blank?
    fail MissingElement.new("No elements for [#{selector}]")
  end
  result
end