Skip to content

Commit 8461c74

Browse files
committed
fix: Nokogiri::XML::XPath is a Module
It has been acting as a module since v1.0.0 (8c87f06).
1 parent 76bd61d commit 8461c74

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/nokogiri/xml/xpath.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
module Nokogiri
55
module XML
6-
class XPath
7-
# The Nokogiri::XML::Document tied to this XPath instance
8-
attr_accessor :document
6+
module XPath
97
end
108
end
119
end

lib/nokogiri/xml/xpath/syntax_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
module Nokogiri
33
module XML
4-
class XPath
4+
module XPath
55
class SyntaxError < XML::SyntaxError
66
def to_s
77
[super.chomp, str1].compact.join(': ')

0 commit comments

Comments
 (0)