Skip to content

Commit

Permalink
Nokogiri::XSLT() uses parameter forwarding (#3356)
Browse files Browse the repository at this point in the history
**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.
  • Loading branch information
flavorjones authored Dec 8, 2024
2 parents 3b8fd7e + a77e1bb commit e8e8ffe
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/nokogiri/xslt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@

module Nokogiri
class << self
###
# Create a Nokogiri::XSLT::Stylesheet with +stylesheet+.
#
# Example:
#
# xslt = Nokogiri::XSLT(File.read(ARGV[0]))
#
def XSLT(stylesheet, modules = {})
XSLT.parse(stylesheet, modules)
# Convenience method for Nokogiri::XSLT.parse
def XSLT(...)
XSLT.parse(...)
end
end

Expand Down

0 comments on commit e8e8ffe

Please sign in to comment.