Skip to content

Commit e8e8ffe

Browse files
authored
Nokogiri::XSLT() uses parameter forwarding (#3356)
**What problem is this PR intended to solve?** part of #3323 **Have you included adequate test coverage?** Existing coverage should be fine. **Does this change affect the behavior of either the C or the Java implementations?** No.
2 parents 3b8fd7e + a77e1bb commit e8e8ffe

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lib/nokogiri/xslt.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@
33

44
module Nokogiri
55
class << self
6-
###
7-
# Create a Nokogiri::XSLT::Stylesheet with +stylesheet+.
8-
#
9-
# Example:
10-
#
11-
# xslt = Nokogiri::XSLT(File.read(ARGV[0]))
12-
#
13-
def XSLT(stylesheet, modules = {})
14-
XSLT.parse(stylesheet, modules)
6+
# Convenience method for Nokogiri::XSLT.parse
7+
def XSLT(...)
8+
XSLT.parse(...)
159
end
1610
end
1711

0 commit comments

Comments
 (0)