Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8461c74

Browse filesBrowse 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
Copy full SHA for 8461c74

File tree

Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed

‎lib/nokogiri/xml/xpath.rb

Copy file name to clipboardExpand all lines: lib/nokogiri/xml/xpath.rb
+1-3Lines 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

Copy file name to clipboardExpand all lines: lib/nokogiri/xml/xpath/syntax_error.rb
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.