Class: Nokogiri::XML::Node
- Inherits:
-
Object
- Object
- Nokogiri::XML::Node
- Defined in:
- lib/elibri_onix/nokogiri_patch.rb
Instance Method Summary collapse
Instance Method Details
#orig_xpath ⇒ Object
4 |
# File 'lib/elibri_onix/nokogiri_patch.rb', line 4 alias_method :orig_xpath, :xpath |
#xpath(*paths) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/elibri_onix/nokogiri_patch.rb', line 6 def xpath *paths unless Nokogiri.uses_libxml? paths.each do |path| path.gsub!(/xmlns:/, ' :') if path.is_a?(String) end end orig_xpath *paths end |