Skip to content

Commit

Permalink
fix: Nokogiri::XML::XPath is a Module
Browse files Browse the repository at this point in the history
It has been acting as a module since v1.0.0 (8c87f06).
  • Loading branch information
flavorjones committed Feb 7, 2021
1 parent 76bd61d commit 8461c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/nokogiri/xml/xpath.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

module Nokogiri
module XML
class XPath
# The Nokogiri::XML::Document tied to this XPath instance
attr_accessor :document
module XPath
end
end
end
2 changes: 1 addition & 1 deletion lib/nokogiri/xml/xpath/syntax_error.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module Nokogiri
module XML
class XPath
module XPath
class SyntaxError < XML::SyntaxError
def to_s
[super.chomp, str1].compact.join(': ')
Expand Down

0 comments on commit 8461c74

Please sign in to comment.